Visio Guy

Visio Discussions => General Visio => Topic started by: Steve Lyons on May 30, 2008, 01:45:35 PM

Title: Hyperlinked Documents
Post by: Steve Lyons on May 30, 2008, 01:45:35 PM
I have a number of .pdf files hyperlinked from my process library.  When I publish to web, and click on the link, the .pdf opens in the existing window.  I need it to open in a new window (so the user can close it when they have finished reading, instead of using the back button).  I could manually add target="_blank" to each link in each Visio, but that would take ages and I would probably have to re-enter every time I re-published.  Any ideas how I can specify hyperlinks to open in an new window?

Thanks, Steve
Title: Re: Hyperlinked Documents
Post by: Lars-Erik on May 30, 2008, 02:19:16 PM
Check out the ShapeSheet of the hyperlink.
Look for the hyperlinks section, and then look for the "NewWindow" cell.
Change that value to True and the link will work just like _blank works in html.

See added picture

- Lars
Title: Re: Hyperlinked Documents
Post by: Steve Lyons on May 30, 2008, 03:04:52 PM
Many thanks, Lars-Erik.  It works perfectly.  I did not even know about the ShapeSheet!
Regards
Steve
Title: Re: Hyperlinked Documents
Post by: Visio Guy on May 30, 2008, 06:09:43 PM
Steve,

With a small amount of code, you can update all of your existing links as well. If you or one of your neighbors is comfortable with VBA code (Visual Basic for Applications)

- Chris
Title: Re: Hyperlinked Documents
Post by: Steve Lyons on May 31, 2008, 08:15:46 AM
Thanks for your tip, Chris.  I have just downloaded the SDK and will try to use some code, but I think I will need some help form a colleague.  I may get back to you in a couple of weeks .......... !

- Steve