I use “SetViewColumnWidthPixel” in combination with “sheet.ViewType = ViewType.PageLayoutView” to set a centimeter width to cell columns - see thread https://forum.aspose.com/t/setcolumnwidthinch-issue/226518/4
A customer reported a bug: sometimes, the column widths are much smaller than expected. After a reboot, the error is gone. The same has happened some days ago for the same customer. I don’t know whether the report worked first and then started showing wrong results, or whether it was broken since the computer was started.
Our code uses only fixed values to convert the millimeter width to pixel, so there is nothing which could change:
ViewType viewTypeOriginal = workSheet.ViewType; workSheet.ViewType = ViewType.PageLayoutView; workSheet.Cells.SetViewColumnWidthPixel (column, millimeter / 10) * 0.39370 * 96) workSheet.ViewType = viewTypeOriginal;
Do you have any idea what could cause this? Do you rely on any operating system information that might have changed in this situation?
I use version 220.127.116.11.