C# - Printing a form with scrollable controls

  • Thread starter Thread starter avanti
  • Start date Start date
A

avanti

HI,

I have an app that has a form with scrollable controls. So, I cannot
make a bitmap from the printscreen and print it since all the content
and controls are not visible at the same time.

Is there a way in C# to print such a form - printing the whole content?

Thanks,
Avanti
 
avanti schreef:
HI,

I have an app that has a form with scrollable controls. So, I cannot
make a bitmap from the printscreen and print it since all the content
and controls are not visible at the same time.

Is there a way in C# to print such a form - printing the whole content?


You could try to maximize your Control (using the PreferredSize), here
is an example of such an implementation:
http://www.timvw.be/wp-content/code/csharp/ResizedControlPrintPageEventHandler.txt

Be aware of the fact that this doesn't work when Docking is used so you
might want to refine your approach...
 
Back
Top