回复 1楼GPCT的帖子
打印大小可以通过 PrintInfo 类来设置:
- 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);
复制代码
或者直接使用 PrintInfo 下的 ZoomFactor 来缩放。 |