Printing from a VB app
Posted on 1999-01-28
I am using the following code to print the details from a screen in my VB app :
Set OutputObject = Printer
OutputObject.Print "Print Example"
OutputObject.Print "How do i do this"
When I the field txtDescription has many lines of text (as appears on the screen), when it is printed it is cut off at the end of the line, instead of wrapping automatically to the next line. Is there an easy way of doing this, rather than writing a routine to split the string up into several strings based on the width of the page?