Session.DefaultHotDocsCSSUrl Property

[Read/Write] This property represents the URL of the default user cascading style sheet (e.g., http://MachineName/HDServerFiles/stylesheets/hdsuser.css) that HotDocs Server should use each time it creates a new Assembly for the current Session.

The default value of this property is determined by the Default CSS url setting in the HotDocs Server Management Console. If that setting is not set, and you do not set the DefaultHotDocsCssUrl property, you must set the CSS URL for each assembly individually.

If you wish to customize the interview style sheets, make a copy of the existing hdsuser.css and hdsuser.xaml style sheets, and place them in the same folder as the originals. You can then update the URL to point to your modified .CSS file. Also note that although Silverlight interviews primarily use the .XAML file as the style sheet, there are still some aspects of the interview controlled by the .CSS file. As such, if you make modifications to the style sheets, you should always make a copy of both files and give the copied files the same base file name so that HotDocs Server can find the .XAML file based on the path to the .CSS file.

Syntax

public string DefaultHotDocsCSSUrl { set; get; }

Example

The following Visual C# code displays several properties of the Session class.

public class ExampleCode
{
    static void Main()
    {
        HotDocs.Server.Session HDSSession = new HotDocs.Server.Session();
         
        HDSSession.AddLogEntry(1, "A new Session has been created with the following ID: " + HDSSession.ID);
         
        HDSSession.DefaultHotDocsCSSUrl = "http://www.yourserver.com/HDServerFiles/stylesheets/hdsuser.css";
        HDSSession.DefaultHotDocsImageUrl = "http://www.yourserver.com/HDServerFiles/images";
        HDSSession.DefaultHotDocsJavascriptUrl = "http://www.yourserver.com/HDServerFiles/js";
         
        System.Console.WriteLine("{0}: {1}","Assemblies", HDSSession.Assemblies.Count);
        System.Console.WriteLine("{0}: {1}","Completed Assemblies", HDSSession.CompletedAssemblies.Count);
        System.Console.WriteLine("{0}: {1}","CSS Url",HDSSession.DefaultHotDocsCSSUrl);
        System.Console.WriteLine("{0}: {1}","Image Url",HDSSession.DefaultHotDocsImageUrl);
        System.Console.WriteLine("{0}: {1}","Javascript Url",HDSSession.DefaultHotDocsJavascriptUrl);
        System.Console.WriteLine("{0}: {1}","ID",HDSSession.ID);
        System.Console.WriteLine("{0}: {1}","PDF Advantage",HDSSession.PDFAdvantageInstalled);
        System.Console.WriteLine("{0}: {1}","HotDocs Version",HDSSession.GetHotDocsVersion());
         
        //Call Dispose when you are completely finished using the Session object
        HDSSession.Dispose();
    }
}