Print Page | Close Window

Refresh button issues

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Writing Code
Forum Discription: .NET 2003 programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=13377
Printed Date: 18 May 2024 at 12:06pm


Topic: Refresh button issues
Posted By: Molly
Subject: Refresh button issues
Date Posted: 01 Jun 2011 at 6:01am
Ripping my hair out. 

This was working and all of a sudden stopped working.  I'm hoping someone can help me.

When you push the refresh button it was simply popping up the needed parameters automatically so you can enter them and then refreshing the report, and now all it does is pop up the thinking wheel and say 'Please wait while the document is processing' and hangs there.

I'm trying to load a CrystalReportsViewer, and it pops up fine the first time.  I pass in the report path from another form and my code looks like this,  (really you would think this would be simple!).  What am I missing here?


public string rpt;
ReportDocument newReport = new ReportDocument();

 private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            newReport.Load(rpt);
            crystalReportViewer1.ReportSource = newReport;
        }





Replies:
Posted By: Molly
Date Posted: 01 Jun 2011 at 9:07am
Well figured it out, 4 hours of wasted time, ridiculous...

I changed my TopMost form property to True, which causes the hang.

Change it back to TopMost to False, parameters pop up no problem.





Print Page | Close Window