,
Share with your friends 

solution of vb programming

6 ratings Views 141 
Author: Reena_579e864d (Reena Sharma)  View Profile |  View other solutions by this author

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

Login to rank it

Report


Advertisement