Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

to get the dlgid of framemaker continue note alert

New Here ,
Feb 22, 2010 Feb 22, 2010

Copy link to clipboard

Copied

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)?

TOPICS
Structured

Views

523
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Mentor , Feb 23, 2010 Feb 23, 2010

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_ApiGetProp

...

Votes

Translate
New Here ,
Feb 22, 2010 Feb 22, 2010

Copy link to clipboard

Copied

I am getting the following framemaker alert note before closing the open documents and book in framemaker after saving the book as pdf.

"Cannot display some imported graphics. The images will appear as gray boxes." I am getting this message for framemaker 7.1 and not when working with framemaker 7.2.

How do we avoid getting this message ? Or how do we close this alert box programmatically without user intervention?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Feb 23, 2010 Feb 23, 2010

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines