回复 1楼t33488的帖子
t33488 你好,
我使用Spread for Winform 7.0。 Code128 条形码类型,合并条形码所在单元格,打印到 PDF 文件。没能重现你描述的问题。
请对比:
- private void Form1_Load(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.CellType.BarCodeCellType barc = new FarPoint.Win.Spread.CellType.BarCodeCellType();
- barc.DisplayMode = FarPoint.Win.Spread.CellType.BarCodeDisplayMode.Image;
- barc.Message = true;
- barc.MessagePosition = FarPoint.Win.Spread.CellType.BarCode.MessagePosition.Left;
- barc.MessageValue = "B3370004";
- barc.Type = new FarPoint.Win.Spread.CellType.BarCode.Code128();
- fpSpread1.ActiveSheet.Columns[0].Width = 220;
- fpSpread1.ActiveSheet.Rows[0].Height = 100;
- fpSpread1.ActiveSheet.Cells[0, 0].CellType = barc;
- fpSpread1.ActiveSheet.Cells[0, 0].Value = 36000280753;
- this.fpSpread1.Sheets[0].AddSpanCell(0, 0, 2, 2);
- }
- private void printSheetToolStripMenuItem_Click(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
- printset.PrintToPdf = true;
- printset.PdfFileName = "D:\\results.pdf";
- // Assign the printer settings and print
- fpSpread1.Sheets[0].PrintInfo = printset;
- fpSpread1.PrintSheet(0);
- }
复制代码
附件是我导出的 PDF 结果:
results.pdf
(11.31 KB, 下载次数: 630)
|