0

I have a performance issue using ReportDocument.PrintToPrinter method.

I have to print a (small) report from a WebService running under IIS 6.0 on Win Server 2008 R2 Enterprise x64. The print report method hangs for about 20 seconds and i can't figure out why.

rpDoc.PrintToPrinter(1, true, 0, 0);

-I don't have problems on my pc, the application works fine. -There are no problems on loading the report. -Printer access is ok (it's installed on the server). -Verify On Every Print / DB ecc ecc is all unchecked. -I use Vs2008, Crystal Reports V. 10.5.37 and 3.5 Framework

Can anybody help me?

4

1 回答 1

2

最后,问题是 IIS 配置中的应用程序池设置。虚拟内存限制过低,当达到寡妇强制回收时,丢弃所有 CR 程序集。20 秒的挂起是由重新加载所需的所有资源引起的。

于 2014-01-08T15:05:38.677 回答