to get the dlgid of framemaker continue note alert
What is the framemaker Api to use to get the dlgid of framemaker alert , so that I can close the dialog at runtime using F_ApiClose(dlgid, 0)?
What is the framemaker Api to use to get the dlgid of framemaker alert , so that I can close the dialog at runtime using F_ApiClose(dlgid, 0)?
Hi Asha,
You can't dismiss these dialog boxes programatically. This is a long-standing problem that has caused frustration for FDK developers, probably since the beginning. Your only hope is to prevent them from appearing at all, which in this case you should be able to do by setting FS_RefFileNotFound to FV_AllowAllRefFilesUnFindable for F_ApiOpen(), something like:
F_PropValsT openScript, *returnp = NULL;
UIntT sn;
F_ObjHandleT docId;
StringT path;
[. . . code to get the path . . .]
sn = F_ApiGetPropIndex(&openScript, FS_RefFileNotFound);
openScript.val[sn].propVal.u.ival = FV_AllowAllRefFilesUnFindable;
docId = F_ApiOpen(path, &openScript, &returnp);
One problem with this, though... it should prevent the warning you are seeing. However, it will not prevent that "Can't display some imported graphics" warning that shows when the missing graphic is scrolled into view. To my knowledge, that warning cannot be suppressed. If the missing graphic happens to be in the viewable area when the document is opened, your code will still be halted by that second message.
Russ
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.