GetPrintPreviewBitmapToStringA

Renderização e impressão

Descrição

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetPrintPreviewBitmapToString and string arguments are interpreted using the current SetAnsiMode code page

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

Sintaxe

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);

Parâmetros

PrinterNameO nome da impressora a usar para imprimir. É o nome que aparece no Gerenciador de Impressão do Windows. Use a função GetPrinterNames para obter uma lista das impressoras válidas no sistema. Um valor retornado pela função NewCustomPrinter também pode ser usado aqui
PreviewPageO número da página a pré-visualizar
PrintOptionsUse a função PrintOptions para obter um valor para este parâmetro
MaxDimensionA largura ou altura máxima do bitmap de pré-visualização
PreviewOptionsReserved for future use, should be set to zero.