您好,
导出图片可以使用CreateBitmap,参考代码:- FarPoint.Win.Spread.CellType.BarCodeCellType barCodeCellType1 = new FarPoint.Win.Spread.CellType.BarCodeCellType();
- barCodeCellType1.BarCodePadding = new FarPoint.Win.Spread.CellType.BarCode.Quiet("", "");
- barCodeCellType1.BarSize = new FarPoint.Win.Spread.CellType.BarCode.BarSize("52.652mm", "23.812mm");
- barCodeCellType1.Type = new FarPoint.Win.Spread.CellType.BarCode.Code39("Code39");
- barCodeCellType1.DisplayMode = FarPoint.Win.Spread.CellType.BarCodeDisplayMode.Image;
- Image image = barCodeCellType1.CreateBitmap("12345");
- image.Save(@"E:\temp.bmp");
- this.fpSpread1_Sheet1.Cells.Get(0, 0).CellType = barCodeCellType1;
- this.fpSpread1_Sheet1.Cells.Get(0, 0).Value = "12345";
复制代码 |