I have solution and work fine
I need in line 7 to add multiple columns with date and time...some help?
- //Adding DataRow
- foreach (DataGridViewRow row in mp_racun_listaDataGridView.Rows)
- {
- int c = 0;
- foreach (DataGridViewCell cell in row.Cells)
- {
- if (c == 2)
- {
- PdfPCell cell2 = new PdfPCell(new Phrase(cell.Value.ToString().Split(' ')[0], calibri));
- pdfTable.AddCell(cell2);
- }
- else
- {
- PdfPCell cell2 = new PdfPCell(new Phrase(cell.Value.ToString(), calibri));
- pdfTable.AddCell(cell2);
- }
- c++;
- }
- }

Sai Kumar KoonaRank #334 · 7.5K reputationPosted Sep 21, 2018, 3:20 AM EDT
Goran BibicRank #993 · 2K reputationPosted Sep 21, 2018, 5:34 AM EDT