|
-
May 3rd, 2000, 12:42 AM
#1
I have a print preview routine that prints a report (I don't use a report writer) either to a PictureBox or the printer depending on the user's choice. When the report is printed on the printer and it is more than one page long, the page break is of course done automatically, but when printing to the PictureBox and I want the "pages" to match what is printed on the printer, I need to do the "page break" manually. I have a routine based on the PictureBox.CurrentY compared with the Printer.ScaleHeight that I thought worked all the time, but I just found out that it doesn't in some cases. Given that I only use one font size, can anyone come up with the code that will allow me to know when to "page break" my PictureBox?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|