PDA

Click to See Complete Forum and Search --> : A crystal report viewer problem


Abbas Haider
Jun 20th, 2009, 01:51 AM
I am using Crystal report Viewer to load a report

The reports are loaded on the button on the form.
I need whenever I press the button the button is disabled until the reports are loaded.

How can I do it

Thanks in Advance

Rgrds
A. Haider

formlesstree4
Jun 20th, 2009, 02:20 AM
Button1.enabled = false

Abbas Haider
Jun 20th, 2009, 02:55 AM
Button1.enabled = false

HAHAHA

Did u clearly read my post I said until the report is loaded
I have to enable the button when the report is visible on crystal report viewer
So there must be some event or method?

Plz help

formlesstree4
Jun 20th, 2009, 01:02 PM
Use a BackgroundWorker to load the Crystal Report. When its finished, in the BGWorker's Work completed event, enable the button.

I directly answered your question, just not in a helpful way. Is this better?

Abbas Haider
Jun 21st, 2009, 07:53 AM
And that exaclty I want to do. But How?
I cannot do it

I have used several crystal report viewer methods but the thing that I wish is not working

formlesstree4
Jun 21st, 2009, 12:39 PM
Look up information on using BackgroundWorkers. They're difficult at first, but trust me, they're not that bad.

Hack
Jun 22nd, 2009, 06:08 AM
Moved To Reporting