Jump: Search:

Total Visual SourceBook

Total Visual SourceBook CD and Printed Manual

Microsoft Access 2007/2010 Version
is Shipping!

New features in Total Visual SourceBook for Access, Office 2007 and VB6

Supports Access/Office 2010 (32 bit), 2007, 2003, 2002, 2000, and
Visual Basic 6.0!

Also available for:
Access 97/95


View all FMS products for Microsoft AccessAll Our Microsoft Access Products

SourceBook Info:

Why SourceBook?

 

"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

 

 

 

 

 
Royalty free source code library modules for Microsoft Access, VB6, VBA, OfficeRoyalty free source code library modules for Microsoft Access, VB6, VBA, OfficeVBA and VB6 Source Code Library Download the free trial version of Total Visual SourceBook for Microsoft Access, Office, VB6 and VBA
Category: Microsoft Visual Basic 6 : Printing
Description: Print using the Windows API and native VB6 commands

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

Feedback

Contact Us  l   Web questions: Webmaster   l   Copyright © FMS, Inc., Vienna, Virginia
Celebrating our 26th Year of Software Excellence