PrintPagesA

レンダリングと印刷

説明

末尾の A は ANSI(char)DLL エントリポイントを示します。ActiveX/COM インターフェースでは Unicode 形式のみを公開します。動作は PrintPages と同じで、文字列引数は現在の SetAnsiMode コードページを使用して解釈されます

選択したドキュメントのページ範囲リストを指定されたプリンターにレンダリングします

構文

Delphi

Function DLPrintPagesA(InstanceID: Integer; PrinterName, PageRanges: PAnsiChar; Options: Integer): Integer;

DLL

int DLPrintPagesA(int InstanceID, const char * PrinterName, const char * PageRanges, int Options);

パラメータ

PrinterName印刷に使用するプリンター名。これは Windows Print Manager に表示される名前である。GetPrinterNames 関数を使用してシステム上の有効なプリンター一覧を取得する。NewCustomPrinter 関数が返す値もここで使用できる
PageRanges印刷するページのリスト 例: "1-10,12,14"
Optionsこのパラメーターの値を取得するには PrintOptions 関数を使用します

戻り値

0エラーが発生しました
1ページは正常に印刷されました