solution of vb programming
|
|
|
Question / Problem
|
how To print a form to the default printer ?
|
Solution
|
To print a form to the default printer
1. In
the Toolbox, click the Visual Basic
PowerPacks tab and then drag the PrintForm
component onto the form.
The PrintForm
component is added to the component tray.
2. In
the Properties window, set the PrintAction
property to PrintToPrinter.
3. Add
the following code in the appropriate event handler (for example, in the Click event handler for a Print Button).
|
Applies to |
|
VB 2005
|
Rank It |
|