PrintForm documentation/examples
PrintForm seems to have many properties and methods, but I cannot find documentation on them or any examples to illustrate their use. Is any available?
For example, I would like to be able use landscape mode and "size to page". As it is, it seems all I can get is a small snapshot of the form in the upper left-hand-corner of a portrait mode page with most of the page blank even though the form is large enough to need most of a page to print clearly. There may be a straightforward way to do what I want to do, but I have been unable to discover what it is.
Thank you in advance for guidance.
[624 byte] By [
Doc] at [2008-1-28]
The documentation for the PrintForm component is installed to your installation directory. Which by default is the following:
Program Files\Microsoft Visual Basic 2005 Power Packs\Printing\PrintForm Component 1.0\Documentation\Microsoft PrintForm Component 1.0 Documentation.htm
In addition the PrintForm component simply uses a standard PrintDocument to perform the printing so you can control printer settings just as you would a standard PrintDocument. See the following page for more information: http://msdn2.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx
I do not believe there is a way to enlarge the output of the PrintForm component to fill the page however. It is designed to print an actual copy of the form. You could try enlarging the form and using Scrollable to print the larger client size of the form. For example:
Printform1.Print(me,PowerPacks.Printing.PrintForm.PrintOption.Scrollable)
Keep in mind that the component can not capture the image of the form if it extends beyond the size of the screen.
I hope that helps