SaveDocument Method
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. Core. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
Description
Saves the merged document to a file.
Syntax
public void SaveDocument(string fileName, StreamType fileFormat, SaveSettings saveSettings);Public Sub SaveDocument(fileName As String, fileFormat As StreamType, saveSettings As SaveSettings)Parameters
| Parameter | Description |
|---|---|
| fileName | Specifies a file into which the data is saved. If the file does not exist, it is created. If the file exists, its contents are overwritten. |
| fileFormat | Specifies one of the StreamType values. |
| saveSettings | Specifies a SaveSettings object with additional information and settings for the save operation. |
Examples
The following example uses Save Document in a focused Mail Merge workflow. The created object is then available to the surrounding document workflow.
mailMerge.SaveDocument("document.docx", StreamType.WordprocessingML, new SaveSettings());
Console.WriteLine("Mail Merge is ready for use.");mailMerge.SaveDocument("document.docx", StreamType.WordprocessingML, New SaveSettings())
Console.WriteLine("Mail Merge is ready for use.")