问题如题,以下是我填充图片那个单元格的代码,现象参照附件。
//第4行8列,张拉示意图
m_fpSpread.ActiveSheet.AddSpanCell(rowNo, columnNo, 6, 1);
m_fpSpread.ActiveSheet.Cells[rowNo, columnNo].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
m_fpSpread.ActiveSheet.Cells[rowNo, columnNo].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
m_fpSpread.ActiveSheet.Cells[rowNo, columnNo].Border = m_siThinBorder.Border;
m_fpSpread.ActiveSheet.Cells[rowNo, columnNo].CellType = m_imageCellType;
m_fpSpread.ActiveSheet.Cells[rowNo, columnNo].Value = m_ReportData._reportHead._bitScheme;
以上代码用到的变量定义如下:
m_imageCellType = new FarPoint.Win.Spread.CellType.ImageCellType();
Bitmap _bitScheme = null;
1.jpg
(83.76 KB, 下载次数: 491)
|
|