【发布时间】:2015-02-12 18:09:45
【问题描述】:
我一直在 iTextsharp 中导出 DataGridView,但是生成的 PDF 文件没有显示 win 表单上可见的小数。
dataGridView1.Columns[4].DefaultCellStyle.Format = "N2";
PdfPCell cell3 = new PdfPCell(new Phrase(cell.Value.ToString(), fontTitle));
cell3.HorizontalAlignment = Element.ALIGN_RIGHT;
pdfTable.AddCell(cell3);
【问题讨论】:
标签: c# datagridview itextsharp