my previous version is 4.8.14, so i've replace bunch of dlls.
The Problem is 'PdfGridCellContent' will cause unidentified problem.(or PdfGridCellContentList)
i don't know exact problem what it is.
but if i try old way(below code) on this version(5.1.16)
there are no problem.
- Code: Select all
PdfGrid logogrid = new PdfGrid();
logogrid.Columns.Add(1);
PdfGridRow logorow = logogrid.Rows.Add();
logogrid.Columns[0].Width = tWidth;
logorow.Height = tHeight;
logorow.Cells[0].Style.BackgroundImage = logo_img;
i've used 'PdfGridCellContent' like this. there are fine on 4.8.14
- Code: Select all
PdfGridCellContentList lst = new PdfGridCellContentList();
PdfGridCellContent textAndStyle = new PdfGridCellContent();
textAndStyle.Image = logo_img;
textAndStyle.ImageSize = new System.Drawing.SizeF(tWidth, tHeight);
lst.List.Add(textAndStyle);
cell.Value = lst;