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

Commented Unassigned: rangeUsed doesn't appear correct [9364]

$
0
0
Hi. Love this project!!!

We have a file where the usedrange is shown as E2:G11 when it should be A2:G11. Any ideas why?

Many thanks,

Chris
Comments: Very strange... when I open that template using this code: ``` var fs = new FileStream(tempFile, FileMode.Open) var workbook = new XLWorkbook(fs); foreach (var xlWorksheet in workbook.Worksheets) { var rangeUsed = xlWorksheet.RangeUsed(true); if (rangeUsed != null) { foreach (var xlCell in rangeUsed.Cells()) ``` the debugger shows {'Sheet1'!E2:G11} for "rangeUsed" var and starts looping at E2 I will investigate further.... sorry about that

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>