Skip to Content
0
May 26, 2010 at 02:26 AM

crystal report preview window freezes if I push any key on the keyboard

73 Views

our system is a pretty old one, and we are still using crystal report 7 and vc6(mfc6).

It is a simple dialog based application with a button and a flex grid7.1 component on it.

when the button is clicked, a crystal report preview window will be opened and become the active window.

the problem is that, when i pushed a key on the keyboard ('a' for example) the whole application will freeze, and CPU Occupancy Rate is 100%.

but if I switch the dialog to be current active window after a preview window opened, keyboard input won't make the application freeze.

It seems that crystal report preview window don't know how to deal with the keyboard input.

BTW:

I use the methods below to open a preview window.

PEOpenEngine

PEOpenPrintJob

PEPrintReport

have anyone here met any similiar problems before?

I really need your help.

thanks in advance.

Edited by: zhengli on May 26, 2010 4:36 AM