DLLName

Top  Previous  Next

This property specifies the path to the PDF engine. wPDF Version 2 used the file wPDF200A.dll, wPDF Version 3 uses the file wPDF300A.dll and wPDF300W.dll. and wPDF Version 4 uses wPDF400A.dll and wPDF400W.dll.

 

64bit Applications use wPDF400W64.dll.

 

The path may be an absolute path or you may reference a registry entry using the tokens {hkcu} or {hklm}.

 

In the demo applications we use the code

 

pdf.DLLName := '{hkcu}Software\WPCubed\wPDF\4.0\path';

 

this lets the VCL load the location from the registry entry which was created by our wPDF setup script.

 

If you are using inno setup you can use code similar to this line to set the location.

 

Root: HKCU; Subkey: Software\MyCompany\wPDF; ValueType: string; ValueName: path; ValueData: {app}\wPDF400a.dll; Flags: uninsdeletekey

 

and for the DLLName property use '{hkcu}Software\MyCompany\wPDF\path';

 

Alternative you can specify the path relatively to your application using ExtractFilePath(Application.EXEName);

 

Important:

If the DLL name ends with a "W", it is expected to be the unicode version of the PDF engine. The 64bit version is always expected to be unicode enabled.