这个其实就是将打印信息写入PDF文件,可以FIle类似。您也可以先导出pdf给客户预览,然后直接打印PDF
- printset.PdfWriteTo = PdfWriteTo.Stream;
- printset.PdfStream = System.IO.File.Open("", System.IO.FileMode.OpenOrCreate);
复制代码- FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
- printset.Header = "Print Job For /nFPT Inc.";
- printset.Footer = "This is Page /p/nof /pc Pages";
- printset.PdfWriteTo = FarPoint.Win.Spread.PdfWriteTo.File;
复制代码 |