回复 1楼Hjr2350的帖子
测试代码如下:
- private void printToolStripMenuItem_Click(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.PrintInfo pi = new FarPoint.Win.Spread.PrintInfo();
- pi.PageStart = 2;
- pi.PageEnd = 2;
- pi.PrintToPdf = true;
- pi.PdfFileName = "1.pdf";
- pi.PrintType = FarPoint.Win.Spread.PrintType.PageRange;
- this.fpSpread1.Sheets[0].PrintInfo = pi;
-
- fpSpread1.PrintSheet(0);
- }
复制代码 |