Hello,
I am having a problem when creating an RTF document with ODS RTF and PROC REPORT. I am creating a hyperlink in the document to a specific page in an external PDF file. When the program runs interactively, and the RTF document is spawned in the results viewer, the link works perfectly and the appropriate page of the PDF document appears.
However, upon exiting SAS and simply opening the created RTF with Word, the hyperlink does not work properly. The external PDF is opened, but stays at the first page and not the page directly hyperlinked to.
The hyperlink is created something like
'{See {\field {\*\fldinst HYPERLINK "\\blankcrf.pdf#pg' ||trim(left(pg)) || '"}{\fldrslt {\cs15\cf2 Page ' || trim(left(pg)) || '}}}}';
I have set bookmarks in the PDF document named "pg1","pg2","pg3", etc that links to the first, second, third, etc page. I also tried setting destinations in the PDF document with the same name, but to no avail.
Any suggestions on why the hyperlink seems to work fine in the results viewer within interactive SAS, but not outside of SAS? I did notice within the interactive mode, the PDF is spawned in an Internet Explorer window (file:///), but when opened outside of SAS, the PDF document opens in the version of Adobe I am running.
Thanks for any suggestions.