Spread中的打印信息是通过PrintInfo来实现的,比如有下面的代码来设置边距:- FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
- FarPoint.Win.Spread.PrintMargin printmar = new FarPoint.Win.Spread.PrintMargin();
- printmar.Left = 10;
- printmar.Right = 10;
- printmar.Top = 20;
- printmar.Bottom = 40;
- printset.Margin = printmar;
- fpSpread1.Sheets[0].PrintInfo = printset;
- fpSpread1.PrintSheet(0);
复制代码 关于更多的设置信息,可以查看帮助文档中 PrintInfo 的使用方法 |