For HotDocs Desktop 11, this method is deprecated and throws an exception. For HotDocs Desktop 11 use CreateTemplatePackage instead.
Use this method to publish a template for use with HotDocs Server. Like the Publishing Wizard (available in the HotDocs Tools menu), this method scans the template for any inserted templates and builds the JavaScript (.JS), HotDocs Variable Collection (.HVC) and Silverlight (.dll) files required for HotDocs Server. This method adds these files and a copy of the template files to the output folder.
void PublishOnlineFiles2(string templatePath, string destinationDir, HDServerFileType fileTypes)
Parameters | Description |
templatePath | The file system path of the template to publish. |
destinationDir | The output folder to which resulting files are copied. |
fileTypes | The types of support files to generate. |
The following C# example will publish suitable files for serving both JavaScript and Silverlight browser interviews:
public class ExampleCode { static void Main() { HotDocs._Application7 app = new HotDocs.Application(); HotDocs.HDServerFileType fileTypes = HotDocs.HDServerFileType.HDServerFilesJavaScript | HotDocs.HDServerFileType.HDServerFilesSilverlight; string templatePath = @"C:\temp\Demo Editor List.rtf"; string destinationDir = @"C:\temp\publish"; app.PublishOnlineFiles2(templatePath, destinationDir, fileTypes); } }