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 MohantyPosted Mar 1, 2020, 10:25 PM
Sumonto MehediPosted Mar 8, 2020, 3:03 AM
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 MehediPosted Mar 7, 2020, 11:34 AM
Laxmidhar SahooPosted Mar 5, 2020, 11:09 PM
Sumonto MehediPosted Mar 4, 2020, 11:43 PM
File:
Amit MohantyPosted Mar 3, 2020, 6:16 AM
Sumonto MehediPosted Mar 3, 2020, 5:48 AM
ohhhhhhhhhhhh
Amit MohantyPosted Mar 3, 2020, 5:23 AM
Sumonto MehediPosted Mar 3, 2020, 4:31 AM
now says- " 'Unable to cast object of type 'System.Byte[]' to type 'System.Drawing.Image "
Thanks:)
Laxmidhar SahooPosted Mar 1, 2020, 11:30 PM
Sumonto MehediPosted Mar 1, 2020, 2:15 AM
Thanks!
Sumonto MehediPosted Mar 1, 2020, 1:58 AM
Amit MohantyPosted Feb 28, 2020, 12:53 AM
Laxmidhar SahooPosted Feb 27, 2020, 11:04 PM
Ravi PatelPosted Feb 26, 2020, 11:45 PM
Sumonto MehediPosted Feb 26, 2020, 11:09 PM
rechecking 60 -63 lines are ambiguous
Laxmidhar SahooPosted Feb 26, 2020, 10:47 PM