cancel
Showing results for 
Search instead for 
Did you mean: 

"Loading..." during report generation?

Former Member
0 Kudos

Hello,

we have several reports which take minutes to generate. Is there a way in CRVS to show a "Please wait" or "Loading" message while the report is loading?

SAP Crystal Reports, version for Microsoft Visual Studio v 13.0.14.1720

Microsoft Visual Studio 2013

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Hi David

See the KBA 1323583 - How to create a Progress Dialog with Crystal Reports In Visual Studio .NET

Note that this only applies to web apps. No solution for WIN viewer.

SAP Crystal Reports .NET SDK Developer Guide

SAP Crystal Reports .NET API Guide

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow me on Twitter

Got Enhancement ideas? Use the SAP Idea Place

Former Member
0 Kudos

Hi Ludek,

Thank you.

I added that, but it does not seem to be working still.

Here is what I have in the web.config - which is at the same level as the page that is rendering the report:

<configSections>

  <sectionGroup name="businessObjects">

    <sectionGroup name="crystalReports" >

      <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"/>

    </sectionGroup>

  </sectionGroup>

</configSections>

    <businessObjects>

      <crystalReports>

        <crystalReportViewer>

          <add key="documentView" value="weblayout"/>

          <add key="processingIndicatorDelay" value="20"/>

         <add key="processingIndicatorText" value="Thank you for waiting."/>

        </crystalReportViewer>

      </crystalReports>

    </businessObjects>

Do I need to setup anything else?

former_member183750
Active Contributor
0 Kudos

In your code, do you have:

CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowProgressAnimation(bool);

- Ludek

Former Member
0 Kudos

This is for a web page, not Windows.

Is the a corresponding call for Web?

I looked, and I couldn't find it real easily.

former_member183750
Active Contributor
0 Kudos

Sorry, that was dumb.

I'm out of time now and out of the office next week, but I will ask Don to take a peek at this next week.

- Ludek

Former Member
0 Kudos

Sorry, this was a while ago, but I am still needing the answer to this.

Also, and kind of related, We have some reports that are taking a long time to render. In older version of CR (we are updating from 8.5 to 2013), it would only display the first page by default. Now it seems that it displays ALL pages by default. Is there a way to set it so that it only displays the first page?

Thanks

DellSC
Active Contributor
0 Kudos

Are you using "Page N of M" or "TotalPages" in your report?  If so, remove it and see if that makes a difference.

-Dell

Former Member
0 Kudos

Thanks Dell.

Yes, that does make a considerable difference.

My original question remains however:


Is there a way in CRVS to show a "Please wait" or "Loading" message while the report is loading?


I already have the web.config settings set, but it seems it only uses that when going from one page to another. Not on the initial report load. I need it to display this "Waiting" message on initial load.

DellSC
Active Contributor
0 Kudos

There may be a way to do that but, unfortunately, I don't know how to implement it.  may have better information on that.

-Dell

0 Kudos

For a WEB app the process is done on the WEB server and the workstation is simply waiting for the page to get generated and then sent to the workstation so it really isn't doing anything.

That KBA Ludek posted doesn't work for you? I wonder if your browsers have Popup blocker enabled? Or maybe Compatibility mode???

I have not tried this lately, I'll try to find time to test that KBA also.

Don

Former Member
0 Kudos

Don, Yes, we do have to use Compatibility Mode for our site. Is that what is causing it?

0 Kudos

I don't think so, it's more likely a pop up blocker.

Use Fiddler and see if it shows anything.

Don

Former Member
0 Kudos

It's not the popup blocker since the Delay indicator shows when navigating from page to page.

What am I looking for in Fiddler?

0 Kudos

Hi David,

They rewrote the viewer to enable AJAX so not sure if this still works but you can update the web.config file with these settings and see if it works for you:

  <configSections>
<sectionGroup name="businessObjects">
<sectionGroup name="crystalReports">
<section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" />
</sectionGroup>
</sectionGroup>
</configSections>

<businessObjects>
<crystalReports>
<crystalReportViewer>
<add key="processingIndicatorDelay" value="20"/>
</crystalReportViewer>
</crystalReports>
</businessObjects>

<businessObjects>
<crystalReports>
<crystalReportViewer>
<add key="processingIndicatorText" value="Thank you for waiting."/>
</crystalReportViewer>
</crystalReports>
</businessObjects>


Don

Answers (0)