Tutorials > VSPrinter Tutorial - Calendar > Step 4: Printing the Calendar |
Printing the calendar is also pretty easy. Since we already have the preview document, all we need to do is call the PrintDoc method. Double-click the Print button and add this code to the cmdPrint_Click event handler:
Example Title |
Copy Code
|
---|---|
Private Sub cmdPrint_Click() vp.PrintDoc End Sub |