Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)

Specifies the Web Server root directory.

Visual Basic

    Public Sub SetDocumentRoot( directory_pathname As String )

C#

    public void SetDocumentRoot( string directory_pathname );

#### Arguments

directory_pathname
  A string specifying the absolute pathname of the web server root directory.

#### Remarks

Swiff Chart Generator requires the absolute pathname of the root directory in order to locate the chart cache folder. The document root directory is the directory on the disk associated with the Web Application Server root (i.e. the directory corresponding to http://<my_server>/)

The document root is usually automatically determined by the Chart object. However, there are some rare situations it needs to be set manually.

#### Sample Code

The following code illustrates use of the SetDocumentRoot method.

Visual Basic

    ' Manually set the Document Root directory
    chart.SetDocumentRoot( "C:\inetpub\wwwroot" )

C#

    // Manually set the Document Root directory
    chart.SetDocumentRoot( "C:\\inetpub\\wwwroot" );

#### See Also

SetOutputFormat Method | GetOutputLocation Method | SetCacheName Method | SetPrivateCacheDir Method | SetMaxCacheSize Method | ClearCache Method | UseCache Method

Applies To: Chart Object