I am applying word wrap for all the cells in the worksheet as:
var wrap = wb.CreateStyle(); wrap.VerticalAlignment = TextAlignmentType.Center;
wrap.HorizontalAlignment = TextAlignmentType.Center; wrap.IsTextWrapped = true;
cells.ApplyStyle(wrap, new StyleFlag() { WrapText = true, HorizontalAlignment = true, VerticalAlignment = true });
It shows fine for the .ODS file but when save a new workbook as PDF it doesn’t word wrapping and loses content as per Picture1Picture1.PNG (38.9 KB)
Found a temporary solution as per forum: Word wrap not working in pdf output (AutoFitRows()) but now the page content is of poor quality (too much space between rows and between fields, font small…). Please see Picture2
Just want to find a solution to look unchanged as per Picture1 but to Word Wrap the content below. Thanks in advancePicture2.PNG (26.6 KB)