ResultDocument and related properties

The property ResultDocument specifies the file path that is used to store the final result document. It contains the last value that is passed through the resultDocument argument to the method Start. The result document is written when a Start or Continue call returns Model.ResultCode.Done. If the property ResultDocumentAllowOverwrite is disabled and the file with the specified path already exists, an error code is returned instead. The default value for the property ResultDocumentAllowOverwrite is true.

If the property ResultDocumentOnServer is enabled, then the file path is interpreted as a path accessible from KCM Core. If the property ResultDocumentOnServer is disabled, then the .NET API downloads the file from KCM Core to the specified local path. The default value for the property ResultDocumentOnServer is false.

The property ResultDocumentFormat is a string that specifies the file format in which the result document is generated. This format can be either "native" or case insensitive "PDF". The default is "native", which means that the word processor format of the Master Template itself gets generated.