Created On: 28 March 2012
Problem:
In Visual COBOL, is there a way to have a user click on a button in a .NET Windows Form application and have it automatically print the current form to the default printer?
Resolution:
Windows Forms Screen Print
This sample program demonstrates how to use the System.Drawing.Printing class to both provide a means of doing a Print Preview via Dialog Box for the current Form and provide a means to print the form to the default printer. The attached program displays two buttons that can be clicked,one to invoke the print preview function and one to print the current form.
This sample program demonstrates how to use the System.Drawing.Printing class to both provide a means of doing a Print Preview via Dialog Box for the current Form and provide a means to print the form to the default printer. The attached program displays two buttons that can be clicked,one to invoke the print preview function and one to print the current form.
Incident #2566324