回复 1楼啊144的帖子
可以实现,参考代码如下:
- //打开excel
- this.fpSpread1.OpenExcel("filename");
- //保存到 pdf 文件
- FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
- printset.PrintToPdf = true;
- printset.PdfFileName = "D:\\results.pdf";
- fpSpread1.Sheets[0].PrintInfo = printset;
- fpSpread1.PrintSheet(0);
复制代码 |