Printing With Visual Basic
|
|
|
|
| Articles Reviews Visual Basic | |
| Written by James Crowley | |
| Thursday, 15 March 2007 | |
|
{mos_sb_discuss:39} Despite claims that computers would create a 'paperless society', printing is still one of the most important functions of an application. It is also one of the most common. Although VB makes it easy to print, it's not one of VB strengths.
This tutorial will introduce you to the functions VB does provide for printing. By the end of this article you should be able to print text, shapes and even complete images files with ease. You should also be able to set page formatting options, work out which printer the output will be directed to, etc. Unsurprisingly, Visual Basic provides us with the Printer and Printers objects, which are available at runtime to all VB apps. The Printers object gives us information about all the available printers installed on the system. The Printer object controls all the output to the active printer and retrieves information such as the printer name.
First of all, lets look at the basic steps
involved in printing with VB. First off, we send all the data we want
to print using the Print method. For example, if we wanted to print
"Hello", we would call Powered by jReviews |
|
| Last Updated ( Sunday, 08 July 2007 ) | |
| < Prev | Next > |
|---|







