LayoutForPrint Property [Access 2003 VBA Language Reference]
You can use the LayoutForPrint property to specify whether the form or report uses printer or screen fonts. Read/write Boolean.
expression Required. An expression that returns one of the objects in the Applies To list.
The LayoutForPrint property uses the following settings.
|Yes||True||(Default for reports) Uses printer fonts.|
|No||False||(Default for forms) Uses screen fonts.|
The property can be set only in form Design view or report Design view.
When you choose a font in Microsoft Access, you are choosing either a screen font or a printer font, depending on the setting of the LayoutForPrint property. Remember that printer fonts and screen fonts can differ, and characters on screen may not look exactly like those displayed on the printed page.
Screen fonts are the images of letters, numbers, and symbols that are installed on your system to be displayed on the screen. If you installed a printer, additional screen fonts may have been installed automatically.
Printer fonts are the letters, numbers, and symbols that are produced when you print a report or a form. The available fonts are those fonts that were installed as part of your printer's setup, and depend on your printer.
If you set the LayoutForPrint property to Yes, the Formatting (Form/Report) toolbar displays the fonts and point sizes available for your printer.
If you design a form or report on a system with a different printer than the one you will use to print, Microsoft Access displays a message when you print the form or report to let you know that it was designed for another kind of printer. If you print the form or report anyway, your printer may substitute different fonts. Similarly, Microsoft Access may substitute fonts if you change the LayoutForPrint property setting. For example, you might design a form or report with LayoutForPrint set to No, then change the setting to Yes. You can reselect the font for each control to specify the appearance of the form or report.
The following example instructs Microsoft Access to use screen fonts for a given form.
Forms("Purchase Orders").LayoutForPrint = False