Hi All,

I am using iText API to provide hyperlinks to each of the following paths:

1. //jdserver/path
2. C:\temp\Test.txt

I am using the iText API as shown below to add a anchor for each of the above url strings (passed in variable urlString):

                        Anchor anchor = new Anchor(urlString, new RtfFont("Arial",12,
                                        RtfFont.UNDERLINE,Color.blue));                                
                        anchor.setReference(urlString);        
                        anchor.setName(urlString.trim());                        
                        paragraph.add(anchor);

I am setting the above paragraph object in the Word document .. The Word document in the output displays the links properly as hyperlinks. But on click of these links in Word says 'Cannot open specified file'. Please could you tell me where I might be going wrong.

Thanks and Regards,
Bhavna Chaudhary



Bhavna Chaudhary
Larsen & Toubro Infotech Limited
Phone : +91 22 5506  2148
Email : [EMAIL PROTECTED]



______________________________________________________________________

Reply via email to