这种多任务同一时间的打印还不支持。
另一种方案就是前一个打印任务完成后再开启下一个,而不是同时发起多个。
- printset.PageStart = 1;
- printset.PageEnd = 2;
- fpSpread1.PrintMessageBox += FpSpread1_PrintMessageBox;
- fpSpread1.Sheets[0].PrintInfo = printset;
- fpSpread1.PrintSheet(0);
复制代码
- private void FpSpread1_PrintMessageBox(object sender, FarPoint.Win.Spread.PrintMessageBoxEventArgs e)
- {
- if (e.BeginPrinting == false)
- {
- if (fpSpread1.ActiveSheet.PrintInfo.PageStart < 4)
- {
- fpSpread1.ActiveSheet.PrintInfo.PageStart = fpSpread1.ActiveSheet.PrintInfo.PageEnd+1;
- fpSpread1.ActiveSheet.PrintInfo.PageEnd= fpSpread1.ActiveSheet.PrintInfo.PageEnd + 1;
- fpSpread1.PrintSheet(0);
- }
- }
- }
复制代码 |