Printing Windows Forms

  • Thread starter Thread starter microsoft.public.dotnet.framework.windowsforms
  • Start date Start date
M

microsoft.public.dotnet.framework.windowsforms

I am developing a Windows application (Visual Studio .Net)in which I
need to view calculated data on a given Windows Form using the Paint
method. No problem with that, but how to manage printing of the Form's
content when the information is too long for just one page (Letter
format)?
To print the form, I am using the demo PrintForm.Net utility.
Many thanks for your help?

Michael Landry
Canada
 
microsoft.public.dotnet.framework.windowsforms said:
I am developing a Windows application (Visual Studio .Net)in which I
need to view calculated data on a given Windows Form using the Paint
method. No problem with that, but how to manage printing of the Form's
content when the information is too long for just one page (Letter
format)?
To print the form, I am using the demo PrintForm.Net utility.

Where did you get this utility?

If you have the source code of the utility, you can set 'e.HasMorePages' to
'True' in the 'PrintDocument's 'PrintPage' event if the form is larger than
the page. This will cause the 'PrintPage' event handler to be called again.
 
The demo is available at the following Web site:
www.winformreports.co.uk
I don't have the source code. However, I will try your proposed
solution. I am not sure if this will work.
Thanks!

Michael Landry
Canada
 
Back
Top