Skip to Content
Former Member
May 04, 2012 at 08:55 PM

Crystal reports for visual studio 2010 waits for keyboard before printing?


I am using a Crystal Reports report for invoice printing in my application, the problem is that the engine seems to be holding on waiting for a keyboard action, such has pressing the windows key, to either Refresh or Print the document.

PrintDocument doc = new PrintDocument();

// setup printer and page information

ReportDocument rep = new Docs.GtrDefault();

// set database connection information

if (rep.HasSavedData)

rep.Refresh(); // first place where it hangs, although not always

// set formula fields data

rep.PrintToPrinter(doc.PrinterSettings, doc.DefaultPageSettings, false); // second place where it hangs


it can hang on either Refresh or PrintToPrinter, usually the former, but all it takes is for me to press the windows key, or some other key combo, for the process to conclude successfully and promptly.

The report has several subreports, could that be causing it?

Any clues on how to solve this?