if (c == 2) my report is
date payment
01.01.2019 01.01.2019 00:00:00
I try to add this
if (c == 2) && (c == 3) my report is
date payment
01.01.2019 00:00:00 01.01.2019 00:00:00
I try to add d (like on example code) if (c == 2) && (d == 3)
my report is
date payment
01.01.2019 00:00:00 01.01.2019 00:00:00
Some help?
- //Adding DataRow
- foreach (DataGridViewRow row in AnalitickaKarticaPartneraDataGridView.Rows)
- {
- int c = 0;
- int d = 0;
- foreach (DataGridViewCell cell in row.Cells)
- {
- if (c == 2 && d == 3)
- {
- 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++;
- d++;
- }
- }
Goran BibicPosted Jul 22, 2019, 6:23 AM
Amit MohantyPosted Jul 22, 2019, 6:16 AM
Goran BibicPosted Jul 22, 2019, 5:35 AM
Goran BibicPosted Jul 22, 2019, 5:34 AM
Amit MohantyPosted Jul 22, 2019, 5:10 AM
Goran BibicPosted Jul 22, 2019, 5:05 AM
Amit MohantyPosted Jul 22, 2019, 5:03 AM