THotPDF.FileName Property
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THotPDF.FileName

THotPDF

 

Top  Previous  Next

Indicates the name and directory path of the PDF file.

 

Delphi syntax:

property FileName: TFileName;

 

C++ syntax:

__property AnsiString FileName;

 

Description

Use the FileName property to determine directory and name of the PDF file.

 

Code Example

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