C#.net : Print issue

  • Thread starter Thread starter Pioneer
  • Start date Start date
P

Pioneer

Hi,
I got to print a Windows form, which span across 2-3 pages.

This form is output of C# program.

How to do this in C#?

The solutions I got till now, were all pointing to taking a
screenprint programmatically and then printing it.

this would not work in my case.

Could you point to me to appropriate solution?

Thanks
Pioneer
 
Pioneer said:
Hi,
I got to print a Windows form, which span across 2-3 pages.

This form is output of C# program.

How to do this in C#?

The solutions I got till now, were all pointing to taking a
screenprint programmatically and then printing it.

this would not work in my case.

Could you point to me to appropriate solution?

Thanks
Pioneer

If you want to print the form, you use the DrawToBitmap method to draw
the form on a Bitmap object, which you then can print parts of.

If you want to put the contents of the form onto printed pages, you do
just that. Get the values you want from the form and draw them using the
graphics object that is provided for printing.
 
Back
Top