I did something similar to create bookmarks in the pdf file (which are those
links that when clicked jump into the pdf).
I used the NovaPDF printer driver which has extra functionality and rules on
how to automatically setup bookmarks.
Perhaps you could use this pdf printer driver and rules to also achieve what
you want to do?
I know the win2pdf printer dirver takes text that looks like hyperlinks and
changes it to actual hyperlinks.
Maybe this would help if the hyperlink text you have is actually the
hyperlinks that are needed?
I do not know what capabilities the pdf creation (while using Leban's code)
is capable of?
There are probably other ways to merge two pdf files together and you can
have code use other pdf printer drivers
(however sometimes registry settings are needed via code). Lebans's code
does make it easy to make pdf files.
Hope this helps,
Mark Andrews
RPT Software
http://www.rptsoftware.com
http://www.donationmanagementsoftware.com
"Charlotte" <(E-Mail Removed)> wrote in message
news:ef50e785-0fb3-4509-88d8-(E-Mail Removed)...
> I am using the Inittoc() function to generate a Table of Contents from
> a source report. In addition, I am using Leban's ReporttoPDF code to
> auto generate the PDF, with both the Table of Contents report and
> source report combined. This all works.
>
> I would really like the Table of Contents page numbers to hyperlink to
> that page in the final report. Is this possible? I thought in the
> [Page Number] text box control a TAG or hyperlink like #[Page Number]
> would do, but I can't figure it out.
>
> Thanks!