I’m using Aspose.Pdf.Generator table
adding row by row cell by cell.
How to format cell’s value/Text to custom string format for example like next one
(* #,##0.00);(* (#,##0.00);(* “-”??);(@_)
Hi Anatoli,
Thanks for contacting support.
Can you please share some sample document which can help us in further understanding this requirement.
Hi,
In excel cell you have style
style has Custom properties and you can apply custom format to this property.
How to do the same in pdf cell?
there is no style property and there is no custom format property.
PdfGenerator.Table tab1 = createPdfTable(PdfGenerator.Section);
PdfGenerator.Row row = new PdfGenerator.Row(tab1);
string sValue = whatevernumberis;
row.Cells.Add(sValue);
here is how to format this new added cell with custom format?
tab1.Rows.Add(row);
Hi Anatoli,
Thanks for sharing the details.
Please note that Table cell contains paragraphs collection and when adding TextFragment as one of these paragraphs, you can specify the format of input text and then place it inside cell object. However the feature to specify certain format for table cell and then adding values to is currently not support. In case I have still not understood your requirement, please share some further details and sample PDF file which can help us in further understanding this requirement.