2025 Feb 12 1:59 PM - edited 2025 Feb 12 2:48 PM
Hi,
Crystal Report Viewer does not display the report content when placed inside an UpdatePanel in ASP.NET Web Forms.

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!!
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.