PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis property gets or sets a value indicating whether or not PDF Creator Pilot should log all actions and errors.
|
| VARIANT_BOOL LogActionsAndErrors { get; set; } |
Value
VARIANT_TRUE if logging is enabled, VARIANT_FALSE otherwise.
Remarks
All actions and errors are saved to log file that can be found in this path:
"%UserAppData%\Two Pilots\PDF Library\Log.txt"
Where %UserAppData% is the file system directory that serves as a common repository for application-specific data.
Typical path for Windows XP:
"C:\Documents and Settings\username\Application Data"
Typical path for Windwos Vista:
"C:\Users\username\AppData\Roaming"
Equivalent in new interface: IPDFDocument4::UseLogging.
Example
Using LogActionsAndErrors
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.StartEngine('demo', 'demo');
PDF.LogActionsAndErrors := true;
PDF.BeginDoc;
{ Here we create our document and fill its contents. }
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->StartEngine("demo", "demo");
PDF->LogActionsAndErrors = TRUE;
PDF->BeginDoc();
// Here we create our document and fill its contents.
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.StartEngine("demo", "demo");
PDF.LogActionsAndErrors = true;
PDF.BeginDoc();
// Here we create our document and fill its contents.
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.StartEngine "demo", "demo" PDF.LogActionsAndErrors = True PDF.BeginDoc ' Here we create our document and fill its contents. PDF.EndDoc


