回复 1楼417827155的帖子
就你提供的frmPrintSub.FpSpread1.Sheets(0).PrintInfo.Printer这句代码,是用来做打印设置的,不是打印。
如果想打印的话,可以参考如下代码:
- // Create PrintInfo object and set properties.
- FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
- printset.ShowGrid = false;
- printset.ShowRowHeader = FarPoint.Win.Spread.PrintHeader.Hide;
- printset.UseMax = true;
- // Set the PrintInfo property for the first sheet.
- fpSpread1.Sheets[0].PrintInfo = printset;
- // Print the sheet.
- fpSpread1.PrintSheet(0);
复制代码
PrintSheet方法可以打印sheetView。 |