I know that WorkbookView
has a RangeToLocation
method (http://www.spreadsheetgear.com/support/help/spreadsheetgear.net.7.0/#SpreadsheetGear2012~SpreadsheetGear.Windows.Forms.WorkbookView~RangeToLocation(Double,Double,Double,Double).html), but if an application is not a Windows Forms one that won't cut it.
Unfortunately I couldn't find a right method or property on the interfaces other than that RangeToLocation
. There's a dirty workaround: the SpreadsheetGear.Drawing.Image
provides a way to generate an image of an area. I could use that function to generate an image from A1
(as top+left cell) to the the cell which is top+left compared to the cell I'm interested in (that would be the bottom+right cell of the draw area). If I'd measure the height/width of that particular image, I'd get the coordinates I want, but for hundreds of cells this would be a lot of unnecessary work.
I hope there's an official way I overlooked instead of the hack I described.