Class DocumentEntityHelper
Inherited Members
Namespace: SuperOffice.CRM.Documents
Assembly: SoDataBase.dll
Syntax
public static class DocumentEntityHelper
Methods
GetSanitizedTemplateStreamAsync(string, bool, string, CancellationToken)
Retrieve a stream to a document template based on its name, and optionally its path.
Declaration
public static Task<Stream> GetSanitizedTemplateStreamAsync(string templateName, bool allowPerson, string uiCulture, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | templateName | Filename of template to retrieve |
| bool | allowPerson | If true, look for template in user area before default template area |
| string | uiCulture | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<Stream> | Open stream to the template |