Click or drag to resize

PFWordFormGeneratorSyncFile Method

Creates or updates a WordForm instance for a PFFile. Calls RefreshInstance on the file is WordFormStatus is set to 'instance', Calls createInstance if other value. (Should be improved) Doesn't do anything if WordFormStatus is null.

Namespace:  Packflow.Interface.Office
Assembly:  MicaSystems.Packflow.Interface (in MicaSystems.Packflow.Interface.dll) Version: 1.0.0.0 (2.0.0.223)
Syntax
C#
public MemoryStream SyncFile(
	PFFile instanceOrTemplateFile,
	bool autoUpdateTemplate = false
)

Parameters

instanceOrTemplateFile
Type: Packflow.CorePFFile
The file to synchronize
autoUpdateTemplate (Optional)
Type: SystemBoolean
In case an instance is created, and the template (parameter PFFile) has to be updated, shall this function save the original PFFile for you ?

Return Value

Type: MemoryStream
A MemoryStream of the instance content.
See Also