GetPrintPreviewBitmapToVariant
Rendering and printing
Description
Returns a byte array containing a BMP image representing a preview of how printing will look.
Syntax
Parameters
PrinterName
The name of the printer to use for printing. This is the name that appears in the Windows Print Manager. Use the GetPrinterNames function to return a list of valid printers on the system. A value returned by the NewCustomPrinter function can also be used here.
The page number to preview
PreviewPage
PrintOptions
Use the PrintOptions function to obtain a value for this parameter
MaxDimension
The maximum width or height of the preview bitmap
PreviewOptions
Reserved for future use, should be set to zero.