Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
programming4us
Windows 7

Microsoft Visio 2010 : Understanding Relative and Absolute Hyperlinks

- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire
9/13/2011 4:23:00 PM
You may have noticed a Use Relative Path For Hyperlink check box in the Hyperlinks dialog box. If you’re very observant, you may also have noticed that this check box is unavailable if you haven’t yet saved your drawing, but is available and selected by default if your current drawing has been saved. What’s this all about?

With Visio, you can build two types of links:

  • A relative link provides a path to a resource by assuming a known starting location.

    As an analogy in the physical world, let’s say you need to attend a meeting in room 216 at Lucerne Publishing. If you’re standing at the reception desk in the lobby of the company’s office and ask where the meeting is located, the receptionist might say, “Go up to the second floor and it’s the second door on the right.” Based on the known starting location you share with the receptionist, the lobby, that information is sufficient to get you to the intended location.

    Relative links in a Visio drawing work in a similar way. The folder containing the Visio drawing serves as “the lobby,” and hyperlink targets on the same disk drive are found relative to that starting point.

    For Visio drawings, relative links work very nicely when the relationship between the starting point and the hyperlink targets remains fixed. Problems can arise, however, if you need to move the Visio drawing file to another computer or even to another location on the same computer. In this case, you must preserve the relative relationships from the new location of the Visio file to the target folders and files. One way you can accomplish this is by copying the entire directory structure containing the Visio drawing and its hyperlink targets.

  • An absolute link contains all of the information required to locate a linked resource, regardless of the starting point.

    Returning to our meeting analogy, if you’re at home and need directions to the conference room at Lucerne Publishing, you need a lot more information to arrive at your destination. An absolute address for the meeting room would look more like the following:

    Lucerne Publishing, Room 216, 3456 Elm St., San Francisco, CA 94117 USA

    Armed with an absolute address, you can get to the meeting from your home, or for that matter, from any starting location in the world.

    For Visio hyperlinks, absolute links work regardless of where your Visio drawing is located. You can move the drawing to a different computer and the links will continue to function without requiring any other changes.


Tip:

Relative and absolute hyperlinks are not mutually exclusive in a single drawing. In fact, many Visio drawings contain a mix of the two link types.


What does all of this have to do with the check box in the Visio Hyperlinks dialog box?

For a saved drawing, Visio assumes that the path to the target of a hyperlink begins in the same folder that contains the Visio drawing. Thus, the default behavior in Visio is to create a relative hyperlink using the location of your Visio drawing as the starting point for the path. When someone clicks your hyperlink, Windows figures out where the target object is by navigating from the location of the Visio drawing.

Just knowing this much explains why the Use Relative Path For Hyperlink check box is unavailable if you haven’t yet saved your drawing—Visio can’t create a relative link yet because there is no known starting point for the Visio drawing. Consequently, the only option is to use an absolute path that contains all of the information Windows will need to track down the target object.

Although there are no absolute guidelines on when to use relative links rather than absolute links, it’s a good idea to think about your environment and the nature of your document collection before creating very many links in Visio. If all of your target documents are in their final resting place, on a network server, for example, then absolute links probably make the most sense. However, if your environment is more volatile, or you know in advance that you’ll be moving your Visio drawing and its hyperlink targets to another computer or to a CD or DVD, then carefully constructed relative links are a good choice.

In addition to that advice, the following examples will help you to understand when Visio creates relative or absolute links.


Warning:

Important

When you use the Hyperlinks dialog box to browse to and select a target document, Visio fills in the Address box and selects the Use Relative Path For Hyperlink check box based on the locations of the Visio drawing and the target document.


For the examples that follow, assume that the HR Process Maps drawing, is saved in C:\Human Resources\Process Maps\ and that the hyperlink target is one of the Word documents shown in the following directory listing.


Tip:

The file name of each Word document includes a parenthetical note to indicate whether it is in a directory above or below the Visio document, or is in the same directory.


  • When the target document is in the same folder as HR Process Maps.vsd, which obviously means that it is on the same disk drive as the Visio drawing, Visio creates a relative hyperlink and the Address box contains the following:

    MyDocument (same).docx

    If you now clear the Use Relative Path For Hyperlink check box, the link becomes an absolute link that begins at the root of drive C. The Address box displays the full path to the document:

    C:\Human Resources\Process Maps\MyDocument (same).docx

  • When you link to a document located in C:\Human Resources\Process Maps \Recruiting\, which is a subfolder of the one containing the Visio drawing, Visio creates a relative hyperlink and the Address box contains the following:

    Recruiting\MyDocument (below).docx

    This indicates that the target document is in a folder called Recruiting.

  • When the target document is located in C:\Human Resources\, which is above the folder containing the Visio document, Visio creates a relative hyperlink and the Address box contains the following:

    ..\MyDocument (above).docx


    Tip:

    “..\” is arcane syntax that predates Windows. It means “go up one directory level.”


  • When the target document is located on any drive other than the one containing the Visio document, for example, drive D or drive K or a network share such as \\MyServer\Human Resources\FY2011\, Visio creates an absolute link and the Address box contains something like the following:

    D:\SomeFolder\MyDocument.docx

    or

    \\MyServer\Human Resources\FY2011\MyDocument.docx

    The following figure shows a target document on drive N.


    Tip:

    Although the link shown in the previous graphic is an absolute link because the target object is located on a network drive, the Use Relative Path For Hyperlink check box still appears with a check mark. Just to confuse things further, if you try to clear the check box, you will find that you can’t do so.



Warning:

Important

You can only create relative links to files that are located on the same physical hard drive as the saved Visio drawing.



Tip:

Visio always creates an absolute link if you begin your address with a server name, drive letter, or web protocol. All of the following will create absolute links regardless of the location of the Visio drawing:

Other -----------------
- Microsoft Visio 2010 : Linking to Another Visio Page
- Microsoft PowerPoint 2010 : Setting Privacy Options
- Microsoft PowerPoint 2010 : Setting Macro Security Options & Changing Message Bar Security Options
- Microsoft Excel 2010 : Displaying Parts of a Table with AutoFilter & Creating Custom Searches
- Microsoft Excel 2010 : Analyzing Worksheet Data - Sorting Data in a Table
- Windows 7 : Resolving Malware Issues (part 3) - Determining When Your System Is Infected with Malware
- Windows 7 : Resolving Malware Issues (part 2) - Protecting Clients from Spyware with Windows Defender
- Windows 7 : Resolving Malware Issues (part 1) - Understanding Malware & Understanding UAC
- Microsoft Word 2010 : Expanding Word Functionality - Setting ActiveX Control Properties & Adding VBA Code to an ActiveX Control
- Microsoft Word 2010 : Expanding Word Functionality - Inserting ActiveX Controls
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Trailers Game
- The Banner Saga 2 [PS4/XOne/PC] PC Launch Trailer
- Welkin Road [PC] Early Access Trailer
- 7th Dragon III Code: VFD [3DS] Character Creation Trailer
- Human: Fall Flat [PS4/XOne/PC] Coming Soon Trailer
- Battlefleet Gothic: Armada [PC] Eldar Trailer
- Neon Chrome [PS4/XOne/PC] PC Release Date Trailer
- Rocketbirds 2: Evolution [Vita/PS4] Launch Trailer
- Battleborn [PS4/XOne/PC] 12 Min Gameplay Trailer
- 7 Days to Die [PS4/XOne/PC] Console Trailer
- Total War: Warhammer [PC] The Empire vs Chaos Warriors Gameplay Trailer
- Umbrella Corps [PS4/PC] Mercenary Customization Trailer
- Niten [PC] Debut Trailer
- Stellaris [PC] Aiming for the Stars - Dev. Diary Trailer #1
- LawBreakers [PC] Dev Diary #4: Concept Art Evolutions
programming4us programming4us
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 windows Phone 7 windows Phone 8
programming4us programming4us
 
programming4us
Natural Miscarriage
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Game Trailer