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++;
- }
- }

Amit MohantyRank #112 · 20K reputationPosted Jul 22, 2019, 1:03 AM EDT
Amit MohantyRank #112 · 20K reputationPosted Jul 22, 2019, 1:10 AM EDT
Amit MohantyRank #112 · 20K reputationPosted Jul 22, 2019, 2:16 AM EDT
Goran BibicRank #993 · 2K reputationPosted Jul 22, 2019, 1:05 AM EDT
Goran BibicRank #993 · 2K reputationPosted Jul 22, 2019, 1:34 AM EDT
Goran BibicRank #993 · 2K reputationPosted Jul 22, 2019, 1:35 AM EDT
Goran BibicRank #993 · 2K reputationPosted Jul 22, 2019, 2:23 AM EDT