Table of contents with page numbers

General TRichView support forum. Please post your questions here
Post Reply
fanderlf
Posts: 3
Joined: Wed Mar 07, 2007 10:31 am

Table of contents with page numbers

Post 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
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

How do define headers?
Do you have headers in table cells?
fanderlf
Posts: 3
Joined: Wed Mar 07, 2007 10:31 am

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
cychia
Posts: 104
Joined: Mon Jan 16, 2006 1:52 am

does RVPrint required printer to be installed?

Post by cychia »

does RVPrint required printer to be installed for this TOC purpose?

If yes, any solution?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
fanderlf
Posts: 3
Joined: Wed Mar 07, 2007 10:31 am

Post 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.
Post Reply