Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Jacob Suzerain Jacob Suzerain is offline
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default 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   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)






  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting word with parameters Mr Beijar Microsoft Word Help 1 December 15th 06 02:29 PM
right margin shifts beyond ruler parameters Bonni Microsoft Word Help 1 October 13th 05 03:31 PM
Passing Parameters into Word from a Hyperlink Robert Jones New Users 1 May 18th 05 09:32 PM
how do i change execution parameters 1better Microsoft Word Help 2 April 20th 05 07:58 AM
How can I change the margin parameters of the vertical ruler? cuencadillo Page Layout 2 November 30th 04 03:09 AM


All times are GMT +1. The time now is 10:01 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"