Hi Russ,<br /><br />Thanks for all the information. Now, I have to work on another piece first. I have to say that I am not really a FrameMaker authoring expert.<br /><br />I need to output the name of the flows (is flow an element?) and their text in the order they appear in each document inside a book.<br /><br />I read the fdkguide and fdkref, I came up with 2 pieces of code and I do not know the differences between them. Would you like to enlight my ignorance?<br /><br />A)<br /> activeDocId = F_ApiGetId(0,FV_SessionId,FP_ActiveDoc);<br /> // the flow<br /> objId = F_ApiGetId( FV_SessionId, activeDocId, FP_FirstFlowInDoc );<br /> while( objId ){<br /> textItems = F_ApiGetText( activeDocId, objId, FTI_String );<br /> text = CreateStringFromTextItems( textItems );<br /> // {...Do some comparison using F_StrSubstr ...}<br /> F_Sprintf(msg, "The document paragraph text is:\n%s.",text);<br /> F_Printf(chan, msg);<br /> F_Printf(chan, "\n");<br /> // F_ApiAlert(msg, FF_ALERT_CONTINUE_NOTE);<br /> F_Free( text );<br /> F_ApiDeallocateTextItems( &textItems );<br /> // pgfId = F_ApiGetId( activeDocId, pgfId, FP_NextPgfInDoc);<br /> objId = F_ApiGetId( activeDocId, objId, FP_NextFlowInDoc);<br /> }<br /> <br />B)<br /> docId = F_ApiGetId(0, FV_SessionId, FP_ActiveDoc);<br /> flowId = F_ApiGetId(FV_SessionId, docId, FP_MainFlowInDoc);<br /> tis = F_ApiGetText(docId, flowId, FTI_String | FTI_LineEnd);<br /> /* Traverse text items and print strings and line ends. */<br /> for (i=0; i<tis.len; i++)<br /> {<br /> ip = &tis.val;<br /> if (ip->dataType == FTI_String)<br /> // F_Printf(NULL,"%s", ip->u.sdata);<br /> F_Printf(chan,"%s", ip->u.sdata);<br /> else <br /> // F_Printf(NULL,"\n");<br /> F_Printf(chan,"\n");<br /> }<br /><br />One starts with the first flow and the other starts with the main flow. Should they be the same? Is this the way of reporting name of flows and their text?<br /><br />Also, it gives me some non-ascii characters in the text output when I print it to a specified channed. Is there anyway that I can convert the FrameMaker text strings into iso or ascii strings to output?<br /><br />Thanks,<br /><br />Robert