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: General VBA/VB6 : Windows Common Dialogs
Description: Displaying Windows Common Dialogs for Colors, Files, Folders, Fonts, Printers, and Page Setup

Class: CPageSetupDialog

Displaying the Page Setup Common Dialog

Procedure Name

Type

Description

(Declarations) Declarations Declarations and private variables for the CPageSetupDialog class
Collate Property Returns whether collation is used when printing multiple copies
Color Property Returns whether colors are printed on color printers
Copies Property Gets the number of copies to print
DeviceName Property Gets the name of the printer
Duplex Property Returns whether double sided printing is enabled for printers capable of supporting it. This property can have the following values: PriSimplex PriVertical PriHorizontal
Flags Property Gets the flags used when displaying the Printer dialog. The Flags property can have the following values: PgsDefaultMinMargins - Specifies that the minimum margins allowed are the minimum margins supported by the printer. PgsMinMargins - Causes the dialog to use the MarginMinLeft, MarginMinTop, MarginMinRight, and MarginMinBottom properties as the minimum margins. PgsMargins - Causes the dialog to use the MarginLeft, MarginTop, MarginRight, and MarginBottom properties as the initial margin values. PgsInThousandsOfInches - Causes the dialog to use thousands of inches for all measurements. PgsInHundredsOfMillimeters - Causes the dialog to use hundrendths of millimeters for all measurements. PgsDisableMargins - Disables the margin input controls. PgsDisablePrinter - Disables the Printer button. PgsNoWarning - Prevents the dialog from warning the user when there is no default printer. PgsDisableOrientation - Disables the orientation radio buttons. PgsReturnDefault - Does not display the dialog and retrieves information about the default printer. PgsDisablePaper - Disables the paper size and source controls. PgsShowHelp - Unsupported in this class PgsEnablePageSetupHook - Unsupported in this class PgsEnablePageSetupTemplate - Unsupported in this class PgsEnablePateSetupTemplateHandle - Unsupported in this class PgsEnablePagePaintHook - Unsupported in this class PgsDisablePagePainting - Prevents the dialog from showing a sample page. PgsNoNetworkButton - Disables the Network button. Multiple flags can be specified using the following syntax: PageSetupDialog.Flags = PgsMargins Or PgsMinMargins
hWndParent Property Gets the handle to the parent window
MarginBottom Property Gets the size of the bottom margin
MarginLeft Property Gets the size of the left margin
MarginMinBottom Property Gets the minimum size of the bottom margin allowed for printing
MarginMinLeft Property Gets the minimum size of the left margin allowed for printing
MarginMinRight Property Gets the minimum size of the right margin allowed for printing
MarginMinTop Property Gets the minimum size of the top margin allowed for printing
MarginRight Property Gets the size of the right margin
MarginTop Property Gets the size of the top margin
Orientation Property Gets the print orientation This property can have the following values: PriPortrait - The printed page is taller than it is wide. PriLandscape - The printed page is wider than it is tall.
PaperLength Property Gets the length of the paper in tenths of a millimeter
PaperWidth Property Gets the width of the paper
PrintQuality Property Gets the print quality This property can have the following values: PriDraft PriLow PriMedium PriHigh
PrintScale Property Gets the factor by which the printed output is scaled. The logical page size is scaled from the physical page size by a factor of PrintScale/100. For example, an 8.5 by 11 inch page with a PrintScale of 50 would contain as much data as a page of 17- by 22-inches because the output would be half the original height and width.
TTOption Property Returns how true type fonts are printed This property can have the following values: PriBitmap - True type fonts are printed as graphics. PriDownload - True type fonts are printed as soft fonts. PriSubstitute - Device fonts are substituted with true type fonts.
YResolution Property Sets the Y resolution of the printer
Show Method Displays the page setup common dialog

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