Generate document
To generate a document, use the GenerateDocument
method of the IWorkspace
object.
Generate a Word document
An example of generating a Word document.
public DocumentGenerationResult GenerateWordDocument(ICommandContext c, ICommandParams p)
{
DocumentGenerationOptions options = new DocumentGenerationOptions
{
Format = "word",
Scope = "all",
OutputPath = "{file path to save to}"
};
DocumentGenerationResult result = c.App.Workspace.GenerateDocument(options);
return result;
}