pdf or word

A

Alex

I've created a hyperkink to open a pdf file that is working good (thanks this
newsgroup).

Can I insert some code in the VB Publisher to recognize whether a user can
open the pdf file and in case he/she cannot (no Acrobat, etc.) do this then
to open the word .doc file. If the user cannot open pdf and word to provide
the user with a message to install pdf or word?

Thanks
 
B

Brian Kvalheim [MSFT MVP]

Alex said:
I've created a hyperkink to open a pdf file that is working good
(thanks this newsgroup).

Can I insert some code in the VB Publisher to recognize whether a
user can open the pdf file and in case he/she cannot (no Acrobat,
etc.) do this then to open the word .doc file. If the user cannot
open pdf and word to provide the user with a message to install pdf
or word?

Thanks

I don't know the answer to this question, but supplying two links and
designating the file type to the consumer offering them a choice seems
feasible.

--
Brian Kvalheim
Microsoft Publisher MVP
http://www.publishermvps.com

This posting is provided "AS IS" with no warranties, and
confers no rights.
 
A

Alex

Thanks for your reply, Brian.
But, actually it's not about a choice. It's about if there is no any choice.
If Acrobat reader is not installed on the user machine so instead of the
error generating the word document could be opened. If there are no MS Word
or Acrobat on the computer there will be a message "Please, install ...".

But, I don't know how to generate a click event on the object with the
hyperlink and whether it's enough to catch an error after the click on pdf
openning (On Error GoTo Next) to go the next row to open the Word and if
there is an error again then to show the MsgBox.
 
E

Ed Bennett

Alex said:
hyperkink
Oops.

Can I insert some code in the VB Publisher to recognize whether a
user can open the pdf file and in case he/she cannot (no Acrobat,
etc.) do this then to open the word .doc file. If the user cannot
open pdf and word to provide the user with a message to install pdf
or word?

This is not possible, sorry.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top