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

Get all cells on one page with FDK

New Here ,
Feb 04, 2009 Feb 04, 2009
Hello.

I am trying to write an application that gets all texts from one specified page with FDK. So I am using F_ApiGetText with FTI_Strings. That returns normal text on page. (I am getting text from textframe on specified page).

But it doesn't return table cells texts. So I start to get all cells from textframe with F_ApiGet(docId, frameId, FP_FirstCell). That return the first cell on page. Then I am iterationg trough all cells with F_ApiGetId(docId, cellId, FP_NextCell).

And here is the problem. I have page with has on start continuation table from previous table and than simple text with pfgnumber and than next table. But FP_NextCell doesn't return these cells from another table. It stop on end from previous table.

What is the way to get all cells on one page?

P.S. PP_NextCell states next cell in textframe. What is wrong?
296
Translate
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 04, 2009 Feb 04, 2009
LATEST
Hi Peter,

You are calling FP_FirstCell to get the first cell in the text frame, which is a valid operation. However, when you call FP_NextCell, you are then at a table-level operation, no longer working within the context of the text frame. So, it operates on the current table only, returning the next cell in that table. When it reaches the end of the current table, it returns zero. You'll never be able to get to any other tables with FP_NextCell.

Perhaps you could use one of the valid cell IDs to retrieve the table object ID, then you could use the FP_NextTableInDoc property on that table ID to get the next table, then drill down to the cells, etc. I don't know, however, if this will retrieve the tables in document order and I also don't know off the top of my head how to be sure a table is actually in a desired text frame, if that is important.

Russ
Translate
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