Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

Page Setup Dialog

The built-in Page Setup Dialog allows an end-user using your application to customize the output's appearance, such as header titles, footers, margins, etc.

This modal dialog offers two pages, accessible via the tab control at the top, one page labeled "Margins" to modify the output's basic positioning. The other page labeled "Headers" defines the output's header and footer appearance.

An application invokes the Page Setup dialog using the PageSetup method.

Multiple lines of text can be entered for the headers and footers. By using Control+Return, additional lines can be entered in the edit controls provided for the headers and footers.

The PageSetupChanged event occurs when the user has modified the page layout using the Page Setup dialog. New settings are reflected in the printer properties, which can be retrieved using the Printer object.

Any settings that the user modifies are lost once the application ends, unless they are saved in a suitable location by the application. SftPrintPreview/OCX does not provide a built-in load/save mechanism for page layout definitions.

When defining the use of Windows themes (see UseThemes property), the application must use an application manifest to make use of the Common Controls version 6, otherwise the Page Setup dialog will use themes for some of the controls, but not for the entire dialog.


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.