Click here to Skip to main content
16,020,990 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am trying to print a set of controls. It consists of some labels ,two panels and a Picturebox. It works fine for a single page

But I am not able to figure out how to print these controls seperately on different pages.Like I want to print the labels on first page ,the picturebox on second page and the two panels on third page.


I think perhaps it has t do something with e.hasmorepages property.

Please let me konw the solution for this
Posted

1 solution

ChetanChaudhary wrote:
I think perhaps it has t do something with e.hasmorepages property.


It has everything to do with it. When you return from your print method you need to set e.hasmorepages to indicate whether there is more data to be printed. If you set it to false then the print class assumes you have finished and will not call you again.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900