IWorksheet TestActiveSheet = fpSpread1.AsWorkbook().ActiveSheet;
var image = TestActiveSheet.Cells[“A2″].InsertPictureInCell(@”D:TmpImage.png”);
image.Sizing = SizingMode.Custom;
image.Width = 50;
image.Height = 20;
TestActiveSheet.Rows[“1:2”].RowHeight = 60;
getting error in line no.2 of code
- I called the function “InsertPictureInCell” directly and tried making concrete class for the abstract class. As, Sizing, Height and width are the properties of an abstract class called ‘CellImage’ in the namespace GrapecitY.CalcEngine.
- I want the image to be insert in the cell “A2”, with the mentioned dimensions.
New contributor
jyoti Chawla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1