回复 1楼qd98zhq的帖子
Spread for WPF 8.0 提供了打印和打印预览功能,参考代码如下:
- GcSpreadSheet1.SheetCount = 3;
- GcSpreadSheet1.Sheets[0].SetText(0, 0, "test");
- GcSpreadSheet1.Sheets[1].SetText(0, 0, "Page test");
- GcSpreadSheet1.Sheets[2].SetText(0, 0, "Page 3 test");
- GrapeCity.Windows.SpreadSheet.Data.PrintInfo printset = new GrapeCity.Windows.SpreadSheet.Data.PrintInfo();
- printset.ShowBorder = true;
- printset.ShowColumnHeader = GrapeCity.Windows.SpreadSheet.Data.VisibilityType.Show;
- printset.ShowRowHeader = GrapeCity.Windows.SpreadSheet.Data.VisibilityType.Show;
- printset.ShowGridLine = true;
- printset.FooterCenter = "This is Page &P";
- GcSpreadSheet1.Sheets[0].PrintInfo = printset;
- GcSpreadSheet1.PrintPreview();
复制代码
下载链接为:
http://d2.gcpowertools.com.cn/in ... F-Silverlightv8.zip |