PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() ![]() ![]() Collapse AllThis method starts the PDF engine.
|
| HRESULT StartEngine ( BSTR userName, BSTR password ) |
Parameters
userName
Name of a registered user
password
Registration key
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
The StartEngine method must be called immediately after library initialization.
userName and password are provided by the Two Pilots company when you buy this product.
Equivalent in new interface: IPDFDocument4::SetLicenseData.
Example
How to Start the PDF Engine
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.StartEngine('demo', 'demo');
PDF.AutoLaunch := false;
PDF.FileName := 'Report.pdf';
PDF.Resolution = 96;
PDF.BeginDoc;
{ Here we create our document and fill its contents. }
PDF.EndDoc;
{ Now the file is created on the disk and we can }
{ copy/move it, send as email attachment or anything else. }
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->StartEngine("demo", "demo");
PDF->AutoLaunch = FALSE;
PDF->FileName = "Report.pdf";
PDF->Resolution = 96;
PDF->BeginDoc();
// Here we create our document and fill its contents.
PDF->EndDoc();
// Now the file is created on the disk and we can
// copy/move it, send as email attachment or anything else.
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.StartEngine("demo", "demo");
PDF.AutoLaunch = false;
PDF.FileName = "Report.pdf";
PDF.Resolution = 96;
PDF.BeginDoc();
// Here we create our document and fill its contents.
PDF.EndDoc();
// Now the file is created on the disk and we can
// copy/move it, send as email attachment or anything else.
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.StartEngine "demo", "demo" PDF.AutoLaunch = False PDF.FileName = "Report.pdf" PDF.Resolution = 96 PDF.BeginDoc ' Here we create our document and fill its contents. PDF.EndDoc ' Now the file is created on the disk and we can ' copy/move it, send as email attachment or anything else.
See Also
Reference


