Create TOC (Complete Report from Code in Delphi)
Hi,
i create the report complete from code and not using the designer. I want to have a TOC including the startpage of the report category.
How can i figure out wich page has what page number in the final pass or is there a way to get the pagenumber from the page?
I am able to get the page using FindObject but that did not help me.
Any suggestions and/or examples? This is my first project using fastreport so i am somehow new to that.
Best regards and many thanks in advance,
Andy
i create the report complete from code and not using the designer. I want to have a TOC including the startpage of the report category.
How can i figure out wich page has what page number in the final pass or is there a way to get the pagenumber from the page?
I am able to get the page using FindObject but that did not help me.
Any suggestions and/or examples? This is my first project using fastreport so i am somehow new to that.
Best regards and many thanks in advance,
Andy
Comments
Hi,
thanks for the quick response ... i tried that but it does not seem to work ...
i create a coverpage, intropage, the indexpage and the datapages in that sequence
in the memo (called datafield) of the toc i create them with the following code:
for each first databand of the datapages i add the following code
Then i get this error message ...
Here is the small demo project .... hope this helps finding the problem ....
Thanks a lot ... i will check it out and put the changes to my app