Print Page Count
-
Hi, How can i find out how many pages there are to print?, since there isnt a property in the PrintPreviewControl for it, but when you create the PrintPreviewControl, a small dialog pops up and counts through the pages which you can preview, thus i presume you must be able to access that event/method some how. Any ideas? Regards, Gareth.
-
Hi, How can i find out how many pages there are to print?, since there isnt a property in the PrintPreviewControl for it, but when you create the PrintPreviewControl, a small dialog pops up and counts through the pages which you can preview, thus i presume you must be able to access that event/method some how. Any ideas? Regards, Gareth.
-
Hi, How can i find out how many pages there are to print?, since there isnt a property in the PrintPreviewControl for it, but when you create the PrintPreviewControl, a small dialog pops up and counts through the pages which you can preview, thus i presume you must be able to access that event/method some how. Any ideas? Regards, Gareth.
gareth111 wrote:
pops up and counts through the pages which you can preview
the box is like "trackBar".. it shows you the progres of painting content to the paper.. in your PrintPage event of printDocument object use some int as a counter.. set it to 0 in BeginPaint event
life is study!!!
-
gareth111 wrote:
pops up and counts through the pages which you can preview
the box is like "trackBar".. it shows you the progres of painting content to the paper.. in your PrintPage event of printDocument object use some int as a counter.. set it to 0 in BeginPaint event
life is study!!!
-
Seishin#: The PrintPage event is fired when your actually printing the data, i want to know BEFORE i print it, so i can display to the user the number of pages. eg Page 1 of 20. Regards, Gareth.
gareth111 wrote:
PrintPage event is fired when your actually printing the data
nope.. don't confuse PrintPage event with Print method.. when you handle PrintPage event you implement the actual look of the page as it will be printed when you call Print method.. PrintPage event is fired for each page that will be printed and thats why you can put in it some pageCounter++ line to count pages.. when you open print preview it is generated with PrintPage event.
life is study!!!
-
gareth111 wrote:
PrintPage event is fired when your actually printing the data
nope.. don't confuse PrintPage event with Print method.. when you handle PrintPage event you implement the actual look of the page as it will be printed when you call Print method.. PrintPage event is fired for each page that will be printed and thats why you can put in it some pageCounter++ line to count pages.. when you open print preview it is generated with PrintPage event.
life is study!!!
Seishin#: Sorry, you were correct. The reason i was getting confused was i had some debugging in the PrintPage event which wasnt been displayed when the preview control was being created. Thus i thought the event wasnt the place i should be looking into. Cheers, Gareth.