Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Common
Collapse All

This property gets or sets the value indicating whether PDF Creator Pilot should log all actions and errors or not.

Syntax

VARIANT_BOOL UseLogging { get; set; }
Value
VARIANT_TRUE if logging is enabled, VARIANT_FALSE otherwise.

Remarks

All actions and errors are saved to a log file that is located here:
"%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

A typical path for Windows XP:

"C:\Documents and Settings\username\Application Data"

A typical path for Windows Vista:

"C:\Users\username\AppData\Roaming"

Example

Using Logging

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.SetLicenseData('demo', 'demo');
PDF.UseLogging := true;

// Here we create our document and fill its contents.
PDF.ShowText('Hello, World!');

PDF.SaveToFile('test.pdf', false);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->SetLicenseData("demo", "demo");
PDF->UseLogging = true;

// Here we create our document and fill its contents.
PDF->ShowText("Hello, World!");

PDF->SaveToFile("test.pdf", false);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.SetLicenseData("demo", "demo");
PDF.UseLogging = true;

// Here we create our document and fill its contents.
PDF.ShowText("Hello, World!");

PDF.SaveToFile("test.pdf", false);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.SetLicenseData "demo", "demo"
PDF.UseLogging = True

' Here we create our document and fill its contents.
PDF.ShowText "Hello, World!"

PDF.SaveToFile "test.pdf", false

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots