but I got Error like this: "unable to cast object of type System.Drawing.bitmap to type system byte[]"
Can anyone help me out kindly?
Here is My Code:
Thanks !!!
Thanks !!!
- foreach (DataGridViewCell cell in row.Cells)
- {
- if(row.Cells[0].Value!= null)
- {
- pdfTable.AddCell(row.Cells[0].Value.ToString());
- }
- if (row.Cells[1].Value != null)
- {
- byte[] img = (byte[])row.Cells[1].Value;
- pdfTable.AddCell(iTextSharp.text.Image.GetInstance(img));
- }
- }

Amit MohantyRank #112 · 20K reputationPosted Mar 1, 2020, 5:25 PM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Feb 26, 2020, 5:47 PM EST
Sumonto Mehedi72 reputationPosted Feb 26, 2020, 6:09 PM EST
rechecking 60 -63 lines are ambiguous
Laxmidhar SahooRank #383 · 6.6K reputationPosted Feb 27, 2020, 6:04 PM EST
Amit MohantyRank #112 · 20K reputationPosted Feb 27, 2020, 7:53 PM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Mar 1, 2020, 6:30 PM EST
Amit MohantyRank #112 · 20K reputationPosted Mar 3, 2020, 12:23 AM EST
Amit MohantyRank #112 · 20K reputationPosted Mar 3, 2020, 1:16 AM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Mar 5, 2020, 6:09 PM EST
Ravi PatelRank #439 · 5.7K reputationPosted Feb 26, 2020, 6:45 PM EST
Sumonto Mehedi72 reputationPosted Feb 29, 2020, 8:58 PM EST
Sumonto Mehedi72 reputationPosted Feb 29, 2020, 9:15 PM EST
Thanks!
Sumonto Mehedi72 reputationPosted Mar 3, 2020, 12:48 AM EST
ohhhhhhhhhhhh
Sumonto Mehedi72 reputationPosted Mar 4, 2020, 6:43 PM EST
File:
Sumonto Mehedi72 reputationPosted Mar 7, 2020, 6:34 AM EST
Sumonto Mehedi72 reputationPosted Mar 7, 2020, 10:03 PM EST
vs19 community got me huge time to knowing lot of things. Last time i changed for each loop with for loop, & Noticed that- in
Love you all <3
Sumonto Mehedi72 reputationPosted Mar 2, 2020, 11:31 PM EST
now says- " 'Unable to cast object of type 'System.Byte[]' to type 'System.Drawing.Image "
Thanks:)