Skip to Content
author's profile photo Former Member
Former Member

Link to document on network

Hello everybody,

I try to open a word document by clicking on a LinkToURL or LinkToAction ui element.

The document is located on a shared drive on the network and not in the WDP application.

But I don't succeed. If I enter the link in the IE by hand it works.

Most of the time I get an InvalidURLException.

Can anybody help me or give me a hint how this can be done?

Help is highly appreciated!



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2007 at 02:03 PM

    Hi Roland,

    Did you try mapping your n/w path to an url and then accessing your document using that url in WD.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Murtuza ,

      thanx for your qucik reply.

      I now at the end found the problem.

      Here is the solution for the action triggered by LinkToAction:


      String linkToBeOpen = WDURLGenerator.getWebResourceURL(


      My document.doc");

      IWDWindow mapWindow = wdComponentAPI.getWindowManager().createNonModalExternalWindow(

      linkToBeOpen.replaceAll(" ","%20"),


      }catch(Exception ex){

      wdComponentAPI.getMessageManager().raiseException(ex.getMessage(), true);


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.