Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.17
InitialPath Property
See Also 
Leadtools.Codecs Namespace > CodecsPdfOptions Class : InitialPath Property




Gets and sets the path to the PDF runtime files.

Syntax

Visual Basic (Declaration) 
Public Property InitialPath As String
Visual Basic (Usage)Copy Code
Dim instance As CodecsPdfOptions
Dim value As String
 
instance.InitialPath = value
 
value = instance.InitialPath
C# 
public string InitialPath {get; set;}
Managed Extensions for C++ 
public: __property string* get_InitialPath();
public: __property void set_InitialPath( 
   string* value
);
C++/CLI 
public:
property String^ InitialPath {
   String^ get();
   void set (String^ value);
}

Return Value

The path to the PDF runtime files, or an empty string, if the default location is to be used.

Example

For an example, refer to CodecsPdfOptions.

Remarks

Set this property to override the default path of the PDF initialization directories. This allows the user to chose which PDF runtime library his or her application loads at runtime.

The default PDF initialization directories path is stored in the system registry key:

"HKEY_LOCAL_MACHINE\SOFTWARE\LEAD Technologies, Inc.\Pdf\GS_LIB"

If you set this property to an empty string (length = 0), then the engine will look for the PDF initialization files in the default PDF initialization directories path (specified by the registry key).

The new path must both exist prior to setting this property and contain the Lib, Font, and Resource directories for the PDF Filter. If either of the above is not true, the engine fails and returns an error when the user attempts to load a PDF file.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also