Hi,
We have issue in latest version of aspose.cells.dll for .net version 8.0.2.0.The output pdf document cannot change wrap text the column(B2,D2,F2,H2,J2,L2).If i apply AutoFitColumns option to excel sheets the wraptext not changed to cells.I have attached orginal xls document(Orginal.xlsx) and output pdf document(Issue_Document.pdf).
please find the below sample code to reproduce the issue,
void ExcelToPdf()
{
//Initialize a new Workbook
//Open an Excel file
Workbook workbook = new Workbook(@"C:\Users\jayaseelan.SIT\Desktop\Orginal.xlsx"); WorksheetCollection wsc = workbook.Worksheets;
for (int i = 0; i < wsc.Count; i++)
{
wsc[i].AutoFitRows();
wsc[i].AutoFitColumns();
}
// Implement one page per worksheet option
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.OnePagePerSheet = true;
workbook.Save(FilePath + "\\" + Path.GetFileNameWithoutExtension(InputFileName) + ".pdf", pdfSaveOptions);
}
i have attached expected output document for your reference(document name:Expected_Document.pdf)
please let me do know if you need any information.
Thanks
jayaseelan