Click or drag to resize

FileHandlerExtensionPreConvert Method

Called just before the document is converted into another format using given rule.

Namespace: CTExtensions.Interfaces
Assembly: CTInterface (in CTInterface.dll) Version: 25.0
Syntax
public virtual bool PreConvert(
	CTBatchFileConversionRule poRule,
	Object poModelDoc,
	string bsTargetFile,
	bool bAlreadyFailed,
	ref bool rbSucceeded,
	ref string bsErrorOrWarning
)

Parameters

poRule  CTBatchFileConversionRule
Rule used in conversion
poModelDoc  Object
Document that is saved as another format. This it not neccessarily the original source document.
bsTargetFile  String
Target file full path
bAlreadyFailed  Boolean
true if this rule has already failed (caused by some other extension)
rbSucceeded  Boolean
Return true if you handled this successfully or with warning.
bsErrorOrWarning  String
Non-empty if warning or error. If rbSucceeded is true then this is warning; error if false.

Return Value

Boolean
Return true if you handled this.
See Also