Hello!
when I save in pdf format, the style of the cell (accounting)
not fit, so this prints |$ 500.00|, but when I save xls format, it prints this if it is so |$ 500.00|
I have Aspose.Cells 5.1.4
thank you very much
(This was translated from Spanish)
Hi,
Kindly post(attach) your template XLS file here, we will check your issue soon.
Thank you.
I have no template file.
this is my code
Workbook libro = new Workbook();
Worksheet hoja = libro.Worksheets[0];
Cells cells = hoja.Cells;
Style style = libro.Styles[libro.Styles.Add()];
double exprice = 25000;
style.Number = 42;
cells["A5"].SetStyle(style);
cells["A5"].PutValue(Convert.ToString(exprice), true);
cells.SetColumnWidth (0,30);
libro.Save("test.pdf", SaveFormat.Pdf );
Hi,
Thanks for the sample code.
I have logged your issue as an id: CELLSNET-21599. We will look into it soon.
By the way, if you add the line:
libro.Worksheets[0].AutoFitColumn(0);
the generated Excel file also renders the same result as PDF.
Thank you.