cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Report Viewer inside UpdatePanel displays only toolbar, report content missing

ARAVIND3001
Explorer
0 Kudos
348

Hi,

Crystal Report Viewer does not display the report content when placed inside an UpdatePanel in ASP.NET Web Forms.

ARAVIND3001_1-1739367158816.png

Please refer the below code.

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="ReportViewerContainer" style="width: 100%; height: 95vh;">
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" HasRefreshButton="True" HasCrystalLogo="False" HasToggleParameterPanelButton="False" ToolPanelView="None" EnableDatabaseLogonPrompt="False" HasDrillUpButton="False" HasExportButton="False" HasPrintButton="False" BestFitPage="False" Width="100%" Height="100%" />
</div>
<asp:Button ID="ApplyFormula" runat="server" Text="Button" style="display:none" OnClick="ApplyFormula_Click" />
</ContentTemplate>
</asp:UpdatePanel>

If I move the div (ReportViewerContainer) and CRViewer outside UpdatePanel, report is displayed properly.

Can someone help me on this?

Thanks in advance!!

View Entire Topic
DonWilliams
Active Contributor
0 Kudos

Have a look at this KBA on using sessions and postback:

https://userapps.support.sap.com/sap/support/knowledge/en/1985571

See if that works for you

ARAVIND3001
Explorer
0 Kudos
Thank you for your response. We are already storing the report in session and reassign it on postback. There is no issue on loading the report source to report viewer, because we are able to print/export the report from viewer even if it's not displayed properly.
DonWilliams
Active Contributor
0 Kudos
What SP are you using? You can get the latest SP37 from here:https://help.sap.com/docs/SUPPORT_CONTENT/crystalreports/3354091173.html
ARAVIND3001
Explorer
0 Kudos
We are using the latest one - SP37
DonWilliams
Active Contributor
0 Kudos
What SP were you using? I passed your new info to R&D so lets see what they say. Often they don't support changing the defaults but they'll confirm this or possibly have a solution for you. Note: there are other issues with the Viewerr so it could be something they can resolve...
ARAVIND3001
Explorer
0 Kudos
Thanks for the update and we are using the latest one - SP37
DonWilliams
Active Contributor
0 Kudos

You already stated the current version you are using. I'm asking what version did you use before updating?

This will help R&D figure out when it may have changed so they can look at the history for that area of the viewer.

 

ARAVIND3001
Explorer
0 Kudos

I was using SP35 before SP37. Even in SP35 the behavior was same.

Note: We are working on a new project and we started this project with SP35. So not sure about older SPs.