Click or drag to resize

PFWordFormGeneratorCreateInstance Method (PFFile, MicaContentDataSet, Boolean, PFQuickPartsSourceInfo)

Creates an Office 2010 WordForm document based on a file template and the provided data-source.

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 CreateInstance(
	PFFile templateFile,
	MicaContentDataSet dataSource,
	bool autoSaveTemplate,
	PFQuickPartsSourceInfo sourceInfo
)

Parameters

templateFile
Type: Packflow.CorePFFile
The template file.
dataSource
Type: MicaSystems.Utils.DataSetMicaContentDataSet
The data source.
autoSaveTemplate
Type: SystemBoolean
if set to true template file dataset schema will be updated and saved when necessary.
sourceInfo
Type: Packflow.CorePFQuickPartsSourceInfo
The source information.

Return Value

Type: MemoryStream
Exceptions
ExceptionCondition
ArgumentExceptionInvalid Extension: WordForm needs .docx or .docm files
See Also