回复 5楼yimi020103的帖子
5#问题,新建一个工程使用以下代码测试是否启作用?
- private void printToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var printInfo = new FarPoint.Win.Spread.PrintInfo();
- printInfo.Margin.Left = 0;
- printInfo.Margin.Right = 50;
- this.fpSpread1.ActiveSheet.PrintInfo = printInfo;
- this.fpSpread1.PrintSheet(this.fpSpread1_Sheet1);
- }
- private void printToolStripMenuItem1_Click(object sender, EventArgs e)
- {
- var printInfo = new FarPoint.Win.Spread.PrintInfo();
- printInfo.Margin.Left = 100;
- printInfo.Margin.Right = 50;
- this.fpSpread1.ActiveSheet.PrintInfo = printInfo;
- this.fpSpread1.PrintSheet(this.fpSpread1_Sheet1);
- }
复制代码 |