When using a HighDPI display, IXLColumn.AdjustToContents doesn't work as expected; it makes the columns too long, probably by the same percentage as currentDPI / 96.
The problem is probably around IXLFontBase.GetWidth().
Comments: Humor me and create a couple of workbooks with one column and apply adjust to contents: 1) With Excel in a normal resolution pc. 2) With Excel in a high resolution pc. 3) With ClosedXML in a normal resolution pc. 4) With ClosedXML in a high resolution pc. Attach those files and also let me know how each looks on both resolutions. Thanks,
The problem is probably around IXLFontBase.GetWidth().
Comments: Humor me and create a couple of workbooks with one column and apply adjust to contents: 1) With Excel in a normal resolution pc. 2) With Excel in a high resolution pc. 3) With ClosedXML in a normal resolution pc. 4) With ClosedXML in a high resolution pc. Attach those files and also let me know how each looks on both resolutions. Thanks,