Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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;}
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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also