"The code is exactly
how I would like to write code and the algorithms used are very
efficient and well-documented."
Van T. Dinh, Microsoft MVP
|
|
Module: modVB_Printer
Enhanced features for working with Printers in VB6
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the modVB_Printer module
|
|
PrinterListToArray
|
Procedure
|
Populates a passed array with a list of the current printer devices on the system
|
|
PrinterListToControl
|
Procedure
|
Populates a passed list box or combo box with a list of the current printer devices on the system.
If you pass anything other than a list box or a combo box to this procedure, it simply exits.
|
|
PrinterSetDefault
|
Procedure
|
Sets the application's default printer to the selected device.
The strDeviceName is the name of the printer as it is known on your system. Examples might be:
HP LaserJet 5
\\OurServer\Reception
You can loop through the Printers collection to obtain a list of the valid printer DeviceNames on your system.
|
|
PrintRTFControl
|
Procedure
|
Print the contents of a RichTextBox.
The RichTextBox control includes a method, SelPrint, to print the contents of the control. This method is of limited value because it does not let you print custom headers and footers. The PrintRTFControl procedure is designed specifically to allow the printing of custom headers and footers.
This procedure requires a reference to "Microsoft Rich Textbox Control" in order to compile. This reference is automatically added when you insert an RTF control onto a form.
|
Overview of Total Visual SourceBook
The source code in Total Visual
SourceBook includes modules and classes for Microsoft Access, Visual
Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily
add this professionally written, tested, and documented royalty-free code
into your applications to simplify your application development efforts.
Additional Resources
|
|