Hyperlink target value does not appear to do anything Word -> IE9 RRS feed

  • Question

  • In ASP.NET applications, I routinely set a target in hyperlinks from my main site. I specify the "target" parameter s "_secondary" (or similar value) and in IE9 I get a new tab the first time the link is followed. Subsequent links from the main site recycle that "_secondary" target tab, so the user is not inundated with new tabs every time they link. The application is one where the user inherently wants to be in two places at the same time, but only two.

    In Word 2010 VBA I have attempted the same, but the target parameter does not have the intended effect, each link creates a new tab in the browser. I know that some of these actions are dependent on settings in the browser, but in this case, it is same machine / same browser.

    Can anyone explain why the target value has no effect?

    Tuesday, March 20, 2012 10:43 PM


  • Hi the one and only Tommy G,
    Thank you for posting.

    <<In ASP.NET applications, I routinely set a target in hyperlinks from my main site.>>

    I am afraid it is not a support scenario which is described in this kb article:

    Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

    And microsoft support other alternative to server side automation:

    Alternatives to server-side Automation
    Microsoft strongly recommends that developers find alternatives to Automation of Office if they need to develop server-side solutions. Because of the limitations to Office's design, changes to Office configuration are not enough to resolve all issues. Microsoft strongly recommends a number of alternatives that do not require Office to be installed server-side, and that can perform most common tasks more efficiently and more quickly than Automation. Before you involve Office as a server-side component in your project, consider alternatives.

    Most server-side Automation tasks involve document creation or editing. Office 2007 supports new Open XML file formats that let developers create, edit, read, and transform file content on the server side. These file formats use the System.IO.Package.IO namespace in the Microsoft .NET 3.x Framework to edit Office files without using the Office client applications themselves. This is the recommended and supported method for handling changes to Office files from a service.

    The Open XML file formats are a public standard. To obtain a copy of the specification, visit the following Web site:

    Hope this can give you some hint.
    Best Regards,

    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us

    • Edited by Bruce Song Thursday, March 22, 2012 3:09 AM
    • Marked as answer by Bruce Song Monday, April 2, 2012 8:03 AM
    Thursday, March 22, 2012 3:08 AM