Excel content preview alignment issue

Dear Team,

We are using groupdocs viewer for viewing the excel file but the alignment of the content preview is different from original file. I added sample excel file, Screen shot of the image and Code changes in the attachments.

Note: The alignment issue mainly in Header part of the preview which I have highlighted in the screenshot.

GroupDocsExcelIssue.zip (362.2 KB)
GroupDocsExcelIssue.zip (362 KB)

@anoop.raphel

We have reproduced this issue. This behavior is a side effect of applying the following setting viewOptions.SpreadsheetOptions.TextOverflowMode = TextOverflowMode.AutoFitColumn; When AutoFitColumn is applied a whole column is affected and resized as it shown in the image auto-fit-columns.png (247.4 KB).

Learn more about Control cell text overflow documentation topic.