Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
hyperlink with parameters?
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) |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
hyperlink with parameters?
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) |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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) |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
hyperlink with parameters?
I'm glad you got it sorted.
I wouldn't say that the limitations of Word's hyperlink feature is a bug, though. Rather, I believe it is a matter of security. -- Stefan Blom "Jacob Suzerain" wrote in message ... 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) |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Starting word with parameters | Microsoft Word Help | |||
right margin shifts beyond ruler parameters | Microsoft Word Help | |||
Passing Parameters into Word from a Hyperlink | New Users | |||
how do i change execution parameters | Microsoft Word Help | |||
How can I change the margin parameters of the vertical ruler? | Page Layout |