PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllGets or sets value indicating should PDF Creator Pilot log all actions and errors or not.
|
| 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 fount this way:
"%UserAppData%\Two Pilots\PDF Library\Log.txt"
Where %UserAppData% is the file system directory that serves as a common repository for application-specific data. A typical path is
for Windows XP:
"C:\Documents and Settings\username\Application Data"
for Windwos Vista:
"C:\Users\username\AppData\Roaming"
Analogue 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 it's 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 it's 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 it's 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 it's contents. PDF.EndDoc


