PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllStarts the PDF engine.
|
| HRESULT StartEngine ( BSTR userName, BSTR password ) |
Parameters
userName
Registration user name.
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 Two Pilots company when you buy this product.
Analogue in new interface: IPDFDocument4::SetLicenseData.
Example
How to use FileName property
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 it's contents. }
PDF.EndDoc;
{ Now the file is created on the disk and we can }
{ copy/move it, send as email attach 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 it's contents.
PDF->EndDoc();
// Now the file is created on the disk and we can
// copy/move it, send as email attach 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 it's contents.
PDF.EndDoc();
// Now the file is created on the disk and we can
// copy/move it, send as email attach 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 it's contents. PDF.EndDoc ' Now the file is created on the disk and we can ' copy/move it, send as email attach or anything else.
See Also
Reference


