Page 1 of 1

Table of contents with page numbers

Posted: Wed Mar 07, 2007 10:44 am
by fanderlf
Hey :)

I am about to build up documents from a Oracle Database in TRichView for later exporting them to PDF via gnostice EDocEngine (Passing RVPrint to EDocEngine).

Now I need to build up a table of contents and therefor I need the page number for every heading.
The Problem is that TRichView itself can't determin on which page a heading will be (RichView is format independent) and TRVPrint can't determine the contents of a page.

So is there any possibility to get something like a table of contents with page numbers?

Would be really kind if anyone could help :)

Thanks in advance,
Florian Fanderl

Posted: Wed Mar 07, 2007 2:18 pm
by Sergey Tkachenko
How do define headers?
Do you have headers in table cells?

Posted: Wed Mar 07, 2007 2:36 pm
by fanderlf
At the moment there are no headings in table cells... the document should look like

Topic page

1. Topic1.........................2
2. Topic2.........................x
2.1 Topic2.1.....................y
2.2 Topic2.2.....................z
3. ...


1. Topic1 (on page 2)

Text to Topic1

2. Topic2 (on page x)

Text to Topic2

2. 1 Topic2.1 (on page y)

Text to Topic 2.1

2. 2 Topic2.2 (on page z)

Text to Topic2.2

....

the problem is that when I add the text I don't know where the different topics will be in the real document.

Posted: Thu Mar 08, 2007 7:07 pm
by Sergey Tkachenko
TRVPrint has the method .GetFirstItemOnPage.
It can be used (if headers are not in table cells) to determine on which page the given item is located. Of course, after formatting for printing (FormatPages)

does RVPrint required printer to be installed?

Posted: Fri Mar 09, 2007 1:19 am
by cychia
does RVPrint required printer to be installed for this TOC purpose?

If yes, any solution?

Posted: Fri Mar 09, 2007 8:29 am
by Sergey Tkachenko
Yes, RVPrint creates pages using printer parameters.
Sorry, printer-independent repagination is not supported (It can be implemented after some changes in TRVReportHelper. Planned for future)

Posted: Mon Mar 12, 2007 3:15 pm
by fanderlf
Printer Independent formattin of documents would be great for our purpose, because every user here could have a different printer set as standard printer. This means that document may look different on each PC and that is insufficiant for a document that should be sent to extern costumers.