gbr
asked on
Printing from a VB app
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 vbLf
OutputObject.Print txtDescription
OutputObject.Print "How do i do this"
OutputObject.EndDoc
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?
Thanks.
Set OutputObject = Printer
OutputObject.Print "Print Example"
OutputObject.Print vbLf
OutputObject.Print txtDescription
OutputObject.Print "How do i do this"
OutputObject.EndDoc
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?
Thanks.
go to www.vb-world.net and search the download able files for word warp and there is a good script there
ASKER
this doesn't really apply to my problem.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank for your help.