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