NewCustomPrinterA

Rendering and printing

Description

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

Creates a custom printer and returns the name of the custom printer. The returned printer name can be used as the PrinterName parameter of the PrintDocument function. Before printing, the properties of the printer can be set using the SetupPrinter function

Syntax

Delphi

Function DLNewCustomPrinterA(InstanceID: Integer; OriginalPrinterName: PAnsiChar): PAnsiChar;

DLL

const char * DLNewCustomPrinterA(int InstanceID, const char * OriginalPrinterName);

Parameters

OriginalPrinterNameThe 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