Welcome to the ASP.NET MVC feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET MVC, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hi,
I get an System.FormatException: Input string was not in a correct format, when using AutoFitColumns method.
Example code:
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Syncfusion.XlsIO.Implementation.WorksheetImpl.ConvertSecondsMinutesToHours(String value, Double dNumber)
at Syncfusion.XlsIO.FormatParser.FormatSection.ApplyFormat(Double value, Boolean bShowReservedSymbols, RangeImpl cell)
at Syncfusion.XlsIO.Implementation.RangeImpl.GetNumberOrDateTime(FormatImpl formatImpl, Double dValue, Int32 row, Int32 column)
at Syncfusion.XlsIO.Implementation.RangeImpl.GetDisplayText(Int32 row, Int32 column, FormatImpl formatImpl)
at Syncfusion.XlsIO.Implementation.AutoFitManager.MeasureToFitColumn()
at Syncfusion.XlsIO.Implementation.RangeImpl.AutoFitToColumn(Int32 firstColumn, Int32 lastColumn)