According to the FDK reference guide, the open parameter FS_RefFileNotFound means "Document imports another file that isn’t available." One of the supported values for this parameter is FV_DoCancel, which cancels the open operation. So before calling the open operation, I specifically set this parameter's value to FV_DoCancel. I assumed that if i did that and the document has an unresolved text inset, then the document would not open. But it does. What am I missing?
Code is as follows:
var vReturnParams=new PropVals();
var vDoc=Open (vFileName,vOpenParams,vReturnParams)
if (CheckStatus (vReturnParams,Constants.FV_CancelReferencedFilesNotFound))
Err ('ERROR: '+vFileName+' was not opened because the document imports files that cannot be found. Verify there are no unresolved text insets in the document. \n')