PDA

View Full Version : Sending text to a printer in VBA (how?)



mbeebe
2004-06-07, 10:29 PM
I have a Inventor VBA application where I want to send text to a printer. In VB6 the Printer object handles text printing. Is there a way from VBA?

Thanks

jwanstaett
2004-06-09, 06:52 PM
You need the put the Data on a Form and then print the form

add a form the side of your printable paper size
with a textbox the same size as the form
put your text in the boxtext and the print the form

UserForm1.PrintForm

Note Form Size/72 will eq. Paper Size in in.