View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Jacob Suzerain Jacob Suzerain is offline
external usenet poster
 
Posts: 2
Default hyperlink with parameters?

Thanks for your help Stefan. I have in the meantime written some code in VBA
to achieve what I want (rather clumsily). Unfortunately I also wanted to
achieve the same effect in onenote. For some strange reason onenote doesnt
support vba and its hyperlink functionaility is even more broken than Word's.

Jacob


"Stefan Blom" wrote:

As you've noticed, Word doesn't pass any parameters to Acrobat when a
hyperlink is clicked. In fact, Word doesn't even know what application
opens the hyperlinked file; that is taken care of by the operating
system. In other words, I don't see a way to accomplish what you want.
However, you could ask in a VBA newsgroup to find out if there is
another method.

--
Stefan Blom
Microsoft Word MVP


"Jacob Suzerain" wrote in message
...
I need to create a hyperlink with the following form (as it appears in

a
shortcut where it works properly):

"Acrobat.exe" /A "page=4=OpenActions" "C:\example.pdf"

(This launches the the pdf file example.pdf with page 4 open)

Using Insert Hyperlink (word 2007) results in a field as follows
{HYPERLINK "\"C:\\Acrobat.exe\" \\A \"page=4=OpenActions\"
\"C:\\example.pdf\"" } (slightly corrected because word gets confused

by the
prliferation of "s and misses some )

This results in the error message "Cant open specified file". What

appears
to be happening is that Word doesnt know how to pass the parameters to
acrobat.exe.

Any ideas on how to construct the hyperlink so that word understands

it?

(Embedding a shortcut in the word document works but this is

exceptionally
clumsy and not very helpful because you need a shortcut for every

hyperlink)