您好,通过设置 PaperSize
- 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);
复制代码 |