Crystal 从 Visual Studio 2019 和 Winforms 报告太慢

Crystal report too slow from Visual Studio 2019 and Winforms

我有一个表格可以打印一些使用 Crystal Report (13.030) 和 Visual Studio 2019 创建的报告。打印每份报告大约需要 5/8 秒。我已经尝试了 google 上的所有建议,但没有解决任何问题。由于报告大约10m,客户需要等待很长时间才能继续。

我了解到这是一个已知问题,但我不知道如何解决。我一直在考虑在 BackgroundWorker 中进行打印,但我不确定这是否是个好主意。

我选中了“报告中没有打印机”框。这是我的一份报告,它们都非常相似。我错了吗?

ReportDocument myReport = new ReportDocument();                           
myReport.Load("myreport.rpt");
PrintLayoutSettings PrintLayout = new PrintLayoutSettings();
PrinterSettings printerSettings = new PrinterSettings();
printerSettings.PrinterName = "PDF Creator"; // Any;
PageSettings pSettings = new PageSettings(printerSettings);

myReport.SetParameterValue("var1", "123"); 
myReport.SetParameterValue("var2", "ABC"); 
myReport.SetParameterValue("var3", "DEF"); 

myReport.PrintToPrinter(printerSettings, pSettings, false, PrintLayout);

myReport.Close();

我将打印件移至尽可能多的 BackgroundWorker,显然一切都非常快,即使我不知道这是否是最佳解决方案。