Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I word wrap text for printing?

Status
Not open for further replies.

aspro

Programmer
Jan 22, 2003
69
AU
I am using printdocument to print strings that come directly from a database. The problem I have is that the strings are usually longer than the page margins so when it prints it simply cuts the string so that you only see what fits on the one line. I have calculated how many lines there can be one the page but I cannot figure out how to add a hard enter to a string when it is too long for the page. I thought maybe if I could split the string into multiple ones then they would all fit but I can't really see how to do this either.
If anyone can give me some help it would be greatly appreciated,

aspro.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top