Hyperlinked Documents

Started by Steve Lyons, May 30, 2008, 01:45:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Steve Lyons

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

Lars-Erik

#1
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

Steve Lyons

#2
Many thanks, Lars-Erik.  It works perfectly.  I did not even know about the ShapeSheet!
Regards
Steve

Visio Guy

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
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Steve Lyons

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