你好,增加后代码如下,还是不行,请查,谢谢!
FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
printset.SmartPrintPagesWide = 1;
printset.SmartPrintPagesTall = 1;
printset.Preview = true;
printset.PageStart = 1;
printset.PageEnd = 2;
fpMain.Sheets[0].PrintInfo = printset;
fpMain.PrintSheet(0); |