Expand my Community achievements bar.

How to use Hyperlink/button to retrive local file

Avatar

Level 2

Hi,

I want to retrive a file which is present in server/local drive by clicking the hyperlink/button in designer .

I am taking a sub form which the data will be populated through webservices if there are 2 names it will dispaly as below and if there are 10 names it will display 10 different names adjucent to 10 different file with their location.

By clicking the url it should open the required PDF/file

eg:

Name        URL

aaaaa         c:\aaa.pdf

bbbbbb       C:\bbb.pdf

My question is:

1. how do we open files which are present in perticular location , I  had tried with  followingcode in  Click event by making button hidden but didnt work

xfa.host.gotoURL("C:\Documents and Settings\Desktop\Subba.txt");

app.openDoc("C:\Documents and Settings\Desktop\Subba.txt");

Please let me know what is worng in my code

Thanks in advance,

subba

0 Replies