回复 1楼刘君的帖子
可以通过PrintInfo取得打印信息,PageSize是纸张类型,即A3,A4等。
PageSource属性是纸张来源,即打印机中纸张的位置信息等,如纸盒1、纸盒2。
代码:
- // Define the printer settings
- FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
- printset.JobName = "New Print Job";
- printset.PageOrder = FarPoint.Win.Spread.PrintPageOrder.Auto;
- printset.PaperSize = new System.Drawing.Printing.PaperSize("Letter", 600, 300);
- printset.PaperSource = new System.Drawing.Printing.PrinterSettings.PaperSources[0].SourceName;
- printset.Printer = "HP6L";
- // Assign the printer settings to the sheet and print it
- fpSpread1.Sheets[0].PrintInfo = printset;
- fpSpread1.PrintSheet(0);
复制代码
文档参考,里面有代码示例:
http://helpcentral.componentone. ... Info~PaperSize.html |