Hide

SftPrintPreview/DLL 2.0 - Print Preview Control for C/C++

Display
Print

Margins

SftPrintPreview/DLL offers powerful page formatting features, with its margins, headers and footers. These are accessible to an end-user through the built-in Page Setup dialog. An application can control these through the SetControlInfo function.

Left, right, top and bottom margins can be defined. In addition, a "gutter" margin is available, which can be placed at the left or top of the page (see SFTPRINTPREVIEW_CONTROL, fGutterLeft member). A gutter margin is useful when printing pages that are to be bound or two and three-hole punched. The gutter margin provides extra space for such binding. If mirrored margins are selected (see SFTPRINTPREVIEW_CONTROL, fMirrorMargins member), the gutter margin will alternate between left and right (or top and bottom) on the front and back of pages. The above picture shows the gutter margin as a shaded area. When printing, the gutter margin area is never shaded. When previewing, margins may be shown depending on SFTPRINTPREVIEW_CONTROL, fShowAreas.

The header and footer titles are positioned at a user- or application-defined distance from the top or bottom edge of the paper (see SFTPRINTPREVIEW_CONTROL, fltHeaderFromEdge, fltFooterFromEdge members). Depending on the contents of the header/footer and the font chosen, they may become too large and overlap into the page body. Using fltMinHeaderGap, fltMinFooterGap this can be avoided by adding a minimum gap below the header and footer.

The top and bottom margins defined should be larger than the distance for the headers/footers, as otherwise the headers and footers could overlay the page contents.


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