
Printing VB.NET FormTrying to print a large form using VB.NET
Page 1 of 1
3 Replies - 11014 Views - Last Post: 03 November 2009 - 05:26 AM
#1
Printing VB.NET Form
Posted 08 June 2009 - 02:07 PM

Replies To: Printing VB.NET Form
#2
Re: Printing VB.NET Form
Posted 09 June 2009 - 06:55 AM
Personally I've always used the PrintForm method from the PowerPacks. What are the problems you are having when you try using this?
If it is because the form is too big, an alternative is to completely resize the form before you use the PrintForm method - work out the form size and what size it needs to be. Get the new size as a percentage of the old size, then use a With... statement to loop through every control on the form making it the right size and place to fit onto a newly sized form for printing.
How will people know if they have the right answer if you are not willing to try what they suggest? I don't know that I have the right answer, but surely suggestions like this are better than no responses at all?
If it is because the form is too big, an alternative is to completely resize the form before you use the PrintForm method - work out the form size and what size it needs to be. Get the new size as a percentage of the old size, then use a With... statement to loop through every control on the form making it the right size and place to fit onto a newly sized form for printing.
Quote
Unless you really know the answer do not reply to this thinking that you do.
How will people know if they have the right answer if you are not willing to try what they suggest? I don't know that I have the right answer, but surely suggestions like this are better than no responses at all?
This post has been edited by Bort: 09 June 2009 - 07:00 AM
#3
Re: Printing VB.NET Form
Posted 02 November 2009 - 06:13 PM
we have the same problem. If you notice it printform with the scrollable option will only print the the maximum size of your screen resolution. meaning if your paper size is bigger than you screen resolution then not all content of your form will be printed. posted this problem also but nobody answers it.
#4
Re: Printing VB.NET Form
Posted 03 November 2009 - 05:26 AM
They should call the PrintForm not PrintForm but PrintScreenToPrinter
(VB Power Packs
(VB Power Packs
Page 1 of 1