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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer.print Line Wrap

Status
Not open for further replies.

PoppapumpJ

Programmer
Dec 17, 2001
86
US
I get the feeling this is something obvious I am just not seeing. But...

I am writing a report using VB's printer.print function.

The problem is that I have a long string of text that needs to be printed but it is cutting off at the edge of the page.

So, my question is:
Is there a way to make the line wrap when it gets to the end of the page?

Thanks
 
I don't know if this can be done automatically, but here is a way around the problem. If you choose a non-proportional font (eg Courier) and counted the chars on the line and in the next variable to be printed (yes it's a pain I know) then you can be in control of what you output and where. This also gives you the opportunity to format a continuation line in a different way - such as indenting it.
I use this output method a lot and have a routine that inserts n single spaces into a variable used to build up one output line from a report design.
You can also build in group totals with other special printing requirements giving much more flexibility than I've been able to coax from either the VB reporter or Crystal.
HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top