I'm trying to create an index at the back of a printed directory and I'm running into some trouble. Basically I have a long list of people that are being output in a table, one per row, and I am paging through the list using GetOverflowRows. What I need to do is somehow keep track of which pages each person appears on (they may appear on multiple pages) and then generate a page index after the table is done. The problem seems to be that my data is long since inaccessible once the table starts going through its pages. Any ideas?
Thanks,
Mike
Subject Index with GetOverflowRows
Re: Subject Index with GetOverflowRows
Support · Dec 5, 2007Hello Mike,
You will have to know the page each customer is on before hand in order to create the index. You can use some kind of counter and create the index page at the same time as the customers keep getting added. Once you have the index page ready, you can add the index pages at the end of the document without any problem.
Thanks,
ceTe Software Support Team
Re: Subject Index with GetOverflowRows
Forum member · Dec 5, 2007My problem is that I don't know the page number until the table starts getting written to the document, which is after I have added the entire list of people to the table. GetOverflowRows is what determines when a new page needs to be added, and that is long after I have actually added the people.
Re: Subject Index with GetOverflowRows
Support · Dec 5, 2007In this case, because of the specific information that you need to keep track of along the way I may actually recommend not using the Table page element. Using the Table there is not any good way to pull out information or check for information as the Table is being built. Rather I would recommend laying out the elements that would have been in the table using Labels and Rectangles. Using Labels and Rectangles will require keeping track of your X and Y locations on the page as you are building these elements but by building your content this way you will have complete control over knowing where any particular person's name is being drawn or which page. Then with this information you will be able to create your documents index.
Thanks,
ceTe Software Support Team