THotPDF.Create-metodi

THotPDF.Create Method

THotPDF

Ylös Edellinen Seuraava

Luo THotPDF-instanssin

Delphi syntax:

constructor Create( AOwner: TComponent ); override;

C++ syntax:

__fastcall virtual THotPDF( Classes::TComponent* AOwner );

Kuvaus

Kutsu Create-metodia THotPDF-objektin luomiseksi ajon aikana. Konstruktori varaa komponentti-instanssin ja alustaa oletusdokumenttiasetukset, joita käytetään myöhemmässä PDF-luonnissa

Code Example


HPDF := THotPDF.Create( nil );
try
  HPDF.FileName := '.\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;

See also: Destroy