你可以尝试使用 RepeatRowStart 来设置重复打印的区域,详细使用方法可以参考Spread帮助文档中的PrintInfo:
- // Define the printer settings
- FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
- printset.Colors = new Color[] {Color.Red, Color.Blue};
- printset.Header = "Print Job For /nFPT Inc.";
- printset.Footer = "This is Page /p/nof /pc Pages";
- printset.Images = new Image[] {Image.FromFile("D:\Corporate.jpg"), Image.FromFile("D:\Building.jpg")};
- printset.RepeatColStart = 1;
- printset.RepeatColEnd = 25;
- printset.RepeatRowStart = 1;
- printset.RepeatRowEnd = 25;
- // Assign the printer settings to the sheet and print it
- fpSpread1.Sheets[0].PrintInfo = printset;
- fpSpread1.PrintSheet(0);
复制代码 |