GetPrintPreviewBitmapToStringA

Rendering and printing

Description

O sufixo A indica o ponto de entrada ANSI (char) da DLL; a superfície ActiveX/COM expõe apenas a forma Unicode. O comportamento é idêntico ao de GetPrintPreviewBitmapToString e os argumentos de cadeia de caracteres são interpretados com base na página de código atual definida por SetAnsiMode

Returns a binary string containing a BMP image representing a preview of how printing will look.

Syntax

Delphi

Function DLGetPrintPreviewBitmapToStringA(InstanceID: Integer; PrinterName: PAnsiChar; PreviewPage, PrintOptions, MaxDimension, PreviewOptions: Integer): PAnsiChar;

DLL

const char * DLGetPrintPreviewBitmapToStringA(int InstanceID, const char * PrinterName, int PreviewPage, int PrintOptions, int MaxDimension, int PreviewOptions);

Parameters

PrinterNameThe 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.
PreviewPageThe page number to preview
PrintOptionsUse the PrintOptions function to obtain a value for this parameter
MaxDimensionThe maximum width or height of the preview bitmap
PreviewOptionsReserved for future use, should be set to zero.