Home > BSPrinter documentation > Reference

PrintPreview Property


Applies to: Global object


Type: IPrinterEx (Read only)


Description:

Returns an object similar to a PrintPreview control, with the same properties and methods, but can be used in Class modules as it does not require a control container to sit on. It can also be used in forms, but a PrintPreview control is simpler to use on them.

Notes:

When the component is registered, before using this object you'll need anyway to load a form with a PrintPreview control at the start of the program to load the license information, otherwise it will work unregistered. The form not need to be shown and can be unload after that.

To call the printing procedure, you can do it in two ways, by using events or by setting the printing procedure.
Please refer to the IPrinterEx object for an explanation of the options. Also the PrinterExEvents object has information of the first option and the SetPrintingProcedure of the second.

See Also:

Events property
PrinterExEvents object
SetPrintingProcedure method
IPrinterEx object