cancel
Showing results for 
Search instead for 
Did you mean: 

Link to document on network

Former Member
0 Kudos

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!

Regards,

Roland

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Roland,

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

Regards,

Murtuza

Former Member
0 Kudos

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:

try{

String linkToBeOpen = WDURLGenerator.getWebResourceURL(

wdComponentAPI.getComponent().getDeployableObjectPart(),

"file://server
share$
folder1
folder1
My document.doc");

IWDWindow mapWindow = wdComponentAPI.getWindowManager().createNonModalExternalWindow(

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

"Title");

mapWindow.show();

}catch(Exception ex){

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

}