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)
Syntax
public virtual bool PreConvert(
	CTBatchFileConversionRule poRule,
	Object poModelDoc,
	string bsTargetFile,
	bool bAlreadyFailed,
	ref bool rbSucceeded,
	ref string bsErrorOrWarning
)

Parameters

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

Return Value

Type: Boolean
Return true if you handled this.
See Also