There is a bug and difference in behaviour between Xlsx and Xls.
To reproduce:
<ol style=“padding-left: 1.5em; font-family: “Lucida Grande”, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);”>
public void ShowExternalLink(string path)
{
var doc = new Workbook(path);
var externalLink = doc.Worksheets.ExternalLinks[0];
Console.WriteLine("DataSource: " + externalLink.DataSource);
Console.WriteLine("DataSource: " + externalLink.DataSource);
<span style=“font-family: “Lucida Grande”, Arial, sans-serif; font-size: 13px;”>Console.WriteLine("Original DataSource: " + externalLink.OriginalDataSource);
}
a) using c drive with xlsx
b) using c drive with xls
c) using p drive with xlsx
d) using p drive with xls
The results between XLSX and XLS are not the same and I’d expect DataSource to be relative to the drive, but in the case of p drive and xls it shows c drive instead of p drive.
a) using c drive with xlsx
b) using c drive with xls
c) using p drive with xlsx
d) using p drive with xls
The results between XLSX and XLS are not the same and I’d expect DataSource to be relative to the drive, but in the case of p drive and xls it shows c drive instead of p drive.