I have a WPF application which connects to a remote database over internet and print records using Crystal reports. When I connect to a local database, it prints fine. But when connected to the remote database, it just hangs. Is there a way to increase the time out period in CR?
ReportDocument oReportDocument = new ReportDocument();
oReportDocument.Load(GV.strExePath + "\\Reports\\Labeller.rpt");
lstDockets.Clear();
lstDockets.Add(oTblBagLabel);
oReportDocument.SetDataSource(lstDockets);
oReportDocument.PrintToPrinter(1, false, 0, 0);
try with larger cache duration of crystal report source.
like this
CrystalReportSource1.CacheDuration = 6000
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.