Click or drag to resize

PFQuickPartsBinderRefreshFile Method (PFFile, PFItem)

Updates QuickParts custom xmls in the instance file, based on sourceItem data, and returns a stream of the file content. The source item must be from the content type found in 'ContentType' property. If the instanceFile is a template, while saving content on another file, don't forget to copy the PFFile.QuickPartsSourceInfo property from instanceFile to the other file after refresh.

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 RefreshFile(
	PFFile instanceFile,
	PFItem sourceItem
)

Parameters

instanceFile
Type: Packflow.CorePFFile
The file to update
sourceItem
Type: Packflow.CorePFItem
The source item. Must be from the same ContentType this binder was initialised with. Can be null, too, to get metadata only.

Return Value

Type: MemoryStream
See Also