fpSpread1.Sheets[0].RowCount = 1;
fpSpread1.Sheets[0].ColumnCount = 1;
fpSpread1.Sheets[0].Rows[0].Height = 400;
fpSpread1.Sheets[0].Columns[0].Width = 900;
FarPoint.Win.Spread.CellType.ImageCellType imgCell = new FarPoint.Win.Spread.CellType.ImageCellType();
imgCell.Style = FarPoint.Win.RenderStyle.Normal;
fpSpread1.Sheets[0].Cells[0, 0].CellType = imgCell;
Bitmap bmp = new Bitmap("d:\\111.jpg");
fpSpread1.Sheets[0].Cells[0, 0].Value = bmp;
我是这样做的,图片是我在CORELDRAW画的一个矩形,长176mm,宽56mm,导出到111.jpg,然后用上面的语句放到网格中,就很大了,不知道是否我的方法不对,请指点,谢谢 |