|
Post by bencooper on Mar 23, 2023 3:26:43 GMT -5
I wish to hard print graphics (which are essentially plotted lines from a regression program, with perhaps some text annotation) While this plots a fullscreen line to Graphics Window (not a Graphics Box), it sends to printer which draws-through blank paper (EPSON EcoTank inkjet). Is this a code issue or printer compatability/setup - I dont get a printer dialogue box. Here is a snippet :-
OPEN "Drawing" FOR GRAPHICS_FS AS #1
PRINT #1,"size 3" ' pen width
PRINT #1,"down" ' ready to draw
'PRINT #1,"color blue" ' pen color
PRINT #1,"line ";C(1,1);" ";C(1,2);" ";C(2,1);" ";C(2,2)
PRINT #1,"PRINT"
PRINT #1,"up" 'stop drawing
WAIT
CLOSE #1
1000
PRINT
PRINT "Program Terminated"
END
|
|
|
Post by tsh73 on Mar 23, 2023 4:19:32 GMT -5
Set default printer to be print to PDF Fiddle with program until you get picture you like. (then possibly print resulting PDF to paper)
EDIT just tested - you need
PRINT #1,"flush" before PRINT
|
|
|
Post by Rod on Mar 23, 2023 5:10:17 GMT -5
Yes, flush is the important command you are missing. Do all your drawing then issue a single flush command at the end just ahead of printing. You will also need the print size parameter. You will need to set size to whatever your drawing width is to be sure the drawing is stretched correctly across the printed page.
There are demos on the LBPE, links are at the top of the forum.
|
|
|
Post by bencooper on Mar 23, 2023 6:10:47 GMT -5
Many thanks for quick responses, tsh73 and Rod - lifesavers !
|
|