- var ict = new FarPoint.Win.Spread.CellType.ImageCellType();
- ict.Style = FarPoint.Win.RenderStyle.Normal;
- ict.TransparencyColor = System.Drawing.Color.Empty;
- ict.TransparencyTolerance = 0;
- fpSpread1.Sheets[0].Cells[1, 1].CellType = ict;
- fpSpread1.Sheets[0].Cells[1, 1].Value = Image.FromFile(@"F:\Download\3847551-9865926659-batma.jpg");
- this.fpSpread1_Sheet1.Rows[1].Height = 194;
- this.fpSpread1_Sheet1.Columns[1].Width = 365;
- fpSpread1.Sheets[0].Cells[0, 0].Text = "s123123123123123";
- fpSpread1.SaveExcel("D:\\results.xls");
复制代码
我这是。net 版本的, 但是方法,接口是一样的。 |