Calling GetViewInfo for a certain Excel file leads to this error:
Height cannot be lesser than 1 or greater than UInt16.MaxValue
Parameter name: height
Actual value was 72369.
The error was reproduced with GroupDocs.Viewer 24.6 and the following code:
using (var viewer = new Viewer(documentPath))
{
var htmlViewOpts = HtmlViewOptions.ForEmbeddedResources();
var viewOptions = ViewInfoOptions.FromHtmlViewOptions(htmlViewOpts);
viewOptions.SpreadsheetOptions = SpreadsheetOptions.ForOnePagePerSheet();
var info = viewer.GetViewInfo(viewOptions);
}
The conversion (calling viewer.View) works actually fine, it’s just viewer.GetViewInfo which throws this error.
Can you please take a look?