Skip to main content
Known Participant
January 23, 2012
Question

FDK 10. Document opened as hidden. Some properties return 0.

  • January 23, 2012
  • 1 reply
  • 551 views

Hello.

We are updating our client for FrameMaker 7.1 to FrameMaker 10. We are opening the document in invisible mode.

Then we query last text frame from document. The we use property FP_FirstCell to get first cell in textframe.

And here is the problem. In FM7.1 it correctly returns that cellId on last textframe. But in FM10 it returns 0.

When change to open document in visible mode, then this property works good.

Did we miss something?

Thanks.

    This topic has been closed for replies.

    1 reply

    Legend
    January 24, 2012

    Hi hanzelko,

    The first question that comes to mind is... are you sure that there is a table cell in the frame?  How are you determining what is the "last frame"? If you are just iterating over the list of FP_GraphicObject objects, the order of the list can be completely arbitrary. You would need to be searching for a specific frame in a specific flow to guarantee that you have the correct frame.

    If you are sure you have the correct frame, there might be a bug. However, I ran a quick test and was not able to duplicate the issue, as I couldn't detect any difference between querying FP_FirstCell on visible versus hidden documents. I did observe, though, that the property is generally a bit quirky and I think I would avoid it altogether in favor of some other method to more reliably retrieve the desired FO_Cell object.

    Russ