Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Created Unassigned: Cross-worksheet Cell and Range hyperlinks should work [9392]

$
0
0
The XLHyperlink constructor currently converts a Cell or Range into an address string __without the sheet name__. This means that cross-worksheet hyperlinks don't work correctly. If I create a hyperlink on Sheet1 to a Cell on Sheet2, then it gets saved out as a hyperlink to the cell address on Sheet1.

I'm attaching a patch that solves this problems by storing the Cell or Range. ToString is also overloaded so that it can include the sheet name. (ToStringFixed and ToStringRelative already have this overload, but they cannot be used because the Cell or Range may be either fixed or relative.)

Viewing all articles
Browse latest Browse all 1877

Trending Articles