实现套打,通常是不打印表框。这一点Spread完全支持。例如:- // Create PrintInfo object and set properties.
- FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
- printset.ShowGrid = false;
- printset.ShowRowHeader = PrintHeader.Hide;
- printset.ShowBorder = false;
- printset.ShowGrid = false;
- printset.UseMax = true;
- printset.PrintToPdf = true;
- printset.PdfFileName = @"D:\TESTPDF.pdf";
- // Set the PrintInfo property for the first sheet.
- fpSpread1.Sheets[0].PrintInfo = printset;
- // Print the sheet.
- fpSpread1.PrintSheet(0);
复制代码
更多详情,请参见随产品安装到您机器上的帮助文档中Customizing the Appearance of the Printing章节。 |