THotPDF.FileName Property

 

THotPDF.FileName

THotPDF

 

傳回頂部  上一頁  下一頁

指出 PDF file 的名稱與 directory path

 

Delphi 語法:

property FileName: TFileName;

 

C++ 語法:

__property AnsiString FileName;

 

說明

使用 FileName property 判斷 PDF file 的 directory 與 name

 

Code Example

HPDF := THotPDF.Create( nil );
try
  HPDF.FileName := 'c:\Output.pdf';
  HPDF.BeginDoc;                     // Start PDF document creation
  HPDF.CurrentPage.TextOut( 100, 100, 0, 'Hello World!' );
  HPDF.EndDoc;                       // Finish and save PDF document
finally
  HPDF.Free;
end;