PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis property controls the launching of an automatic PDF reader.
|
| VARIANT_BOOL AutoLaunch { get; set; } |
Value
VARIANT_TRUE if the document will be opened by the default reader after creation. VARIANT_FALSE otherwise.
Remarks
This property determines if a PDF reader should be automatically launched to display a newly-generated file. If GenerateInMemoryFile is VARIANT_FALSE, then a PDF reader is not launched.
Equivalent in new interface: IPDFDocument4::SaveToFile.
Example
Using AutoLaunch
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.FileName := 'test.pdf';
PDF.Resolution := 96;
PDF.AutoLaunch := true; { this will automatically open document created }
PDF.BeginDoc;
{ something else here... }
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created PDF->FileName = "test.pdf"; PDF->Resolution = 96; PDF->AutoLaunch = TRUE; //this will automatically open document created PDF->BeginDoc(); // something else here... PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created PDF.FileName = "test.pdf"; PDF.Resolution = 96; PDF.AutoLaunch = true; //this will automatically open document created PDF.BeginDoc(); // something else here... PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.FileName = "test.pdf" PDF.Resolution = 96 PDF.AutoLaunch = True 'this will automatically open document created PDF.BeginDoc ' something else here... PDF.EndDoc
See Also
Reference


