PrintDocument

렌더링 및 인쇄

설명

선택한 문서의 특정 페이지를 지정한 프린터로 렌더링합니다

구문

Delphi

Function TPDFlib.PrintDocument(Const PrinterName: WideString; StartPage, EndPage, Options: Integer): Integer;

ActiveX

Function PDFlib::PrintDocument(PrinterName As String, StartPage As Long, EndPage As Long, Options As Long) As Long

DLL

int DLPrintDocument(int InstanceID, const wchar_t* PrinterName, int StartPage, int EndPage, int Options);
int DLPrintDocumentA(int InstanceID, const char* PrinterName, int StartPage, int EndPage, int Options);

매개변수

PrinterName인쇄에 사용할 프린터 이름이며 Windows Print Manager에 나타나는 이름입니다. GetPrinterNames 함수로 유효한 프린터 목록을 반환할 수 있고 NewCustomPrinter 함수가 반환한 값도 사용할 수 있습니다
StartPage인쇄할 첫 페이지
EndPage인쇄할 마지막 페이지
OptionsPrintOptions 함수를 사용하여 이 매개변수의 값을 가져옵니다

반환 값

0페이지를 인쇄할 수 없습니다 일반적으로 StartPage 및 EndPage 매개변수가 범위를 벗어난 경우 발생합니다
1페이지가 성공적으로 인쇄됨