Hyperlink - File - Relative Path

In Excel I can create a Hyperlink using a relative path. When I try to specify a relative path for the Address in a Syncfusion.XlsIO.IHyperLink, it automatically prepends the current path. Can I get it to stop that? I have tried many things and can't get rid of it.

3 Replies

MW Melba Winshia Syncfusion Team May 23, 2007 11:53 AM UTC

Hi David,

I was not able to reproduce the issue. I created a sample to specify a relative path for the Address in a Syncfusion.XlsIO.IHyperLink and it works fine for me. Here is the sample that I used to test this issue:

http://websamples.syncfusion.com/samples/XlsIO.Windows/61292/main.htm

Could you please take a look at the sample above and kindly let me know if you still find any problem, if not could you please modify this sample so that I can reproduce the issue? This would help me in investigating this issue further.

Thanks,
Melba


DC David Conorozzo May 23, 2007 09:11 PM UTC

I ran the code and got the same results. The link is not relative. If you open the file in Excel and right-click on that cell and pick edit, you will see that the path is a full path. I was not saying that I can't supply a relative path for the Address property of the Hyperlink, what I was saying was that your class code changes it to a non-relative path.

If you create a Hyperlink through Excel itself, I can specify a relative path. Attached is an example showing what I get with your code (cell B2), and you will see that in cell A1 I have created a truly relative hyperlink.

after.zip


MW Melba Winshia Syncfusion Team May 24, 2007 01:05 PM UTC

Hi David,

We have created a Direct-Trac incident with the ID #34325 in this regard. Could you please follow up this incident to get details regarding this?

Thanks,
Melba

Loader.
Up arrow icon