I am writing code to print a box but the printer just seems to print a blank sheet of paper.
Heres the code ive written.
Private Sub Command4_Click()
Dim prn As Printer
Set prn = Printer
startx1 = starty1 = 5670
endx1 = endy1 = 56700
black1 = RGB(0, 0, 0)
prn.Line (startx1, starty1)-(endx1, starty1), black1
prn.Line (endx1, starty1)-(endx1, endy1), black1
prn.Line (endx1, endy1)-(startx1, endy1), black1
prn.Line (startx1, endy1)-(startx1, starty1), black1
prn.EndDoc
End Sub
If anyone has any ideas they would be appreciated.
cheers.
Heres the code ive written.
Private Sub Command4_Click()
Dim prn As Printer
Set prn = Printer
startx1 = starty1 = 5670
endx1 = endy1 = 56700
black1 = RGB(0, 0, 0)
prn.Line (startx1, starty1)-(endx1, starty1), black1
prn.Line (endx1, starty1)-(endx1, endy1), black1
prn.Line (endx1, endy1)-(startx1, endy1), black1
prn.Line (startx1, endy1)-(startx1, starty1), black1
prn.EndDoc
End Sub
If anyone has any ideas they would be appreciated.
cheers.