1836332 - Report not rendering in DHTML viewer after entering parameters

SAP Knowledge Base Article - Public

1836332 - Report not rendering in DHTML viewer after entering parameters

Symptom

  • Report run in a Visual Studio Web application prompts for parameters
  • The report does not render in the viewer, unless the F5 button is pressed

Environment

  • SAP Crystal Reports, developer version for Microsoft Visual Studio
  • Microsoft Visual Studio
  • Telerik RadAjaxPanel

Cause

  • The viewer description is contained within theTelerikRadAjaxPanel

    <telerik:RadAjaxPanel ID="AjaxPanel1" runat="server"
    LoadingPanelID="MasterLoadingPanel" ClientEvents-OnRequestStart="centerLoadingPanelWithAjax">
    ...
    <asp:Button ID="GenerateReportButton" Text="Generate Report" runat="server" 
    OnClientClick="SetGenerateButtonClientId(this.id)"
    OnClick="GenerateReport_Click" />
       <asp:Panel runat="server" ID="ReportPanel" BackColor="White" Visible="true">
            <CR:CrystalReportViewer ID="CrystalReportViewer1"
    EnableDatabaseLogonPrompt="false"
    Visible="true" runat="server"
    AutoDataBind="true"
    HasCrystalLogo="False"
    HasDrillUpButton="False"
    HasSearchButton="False"
    HasToggleGroupTreeButton="False" 
    HasZoomFactorList="False"
    HasExportButton="False"
    HasPrintButton="False" ShowAllPageIds="True"
    ToolbarStyle-BackColor="WhiteSmoke"
    ToolbarStyle-BorderColor="WhiteSmoke"
    ReuseParameterValuesOnRefresh="True"
    EnableDrillDown="False" 
    BestFitPage="true" 
    ToolPanelView="None" />  
     
    ...
    </telerik:RadAjaxPanel>

 

Resolution

  • Move the report viewer and the associated button that will generate the reports outside theRadAjaxPanel
    <telerik:RadAjaxPanel ID="AjaxPanel1" 
    runat="server"
    LoadingPanelID="MasterLoadingPanel"
    ClientEvents-OnRequestStart="centerLoadingPanelWithAjax">
    ...
    </telerik:RadAjaxPanel>
    <asp:Button ID="GenerateReportButton" 
    Text="Generate Report" runat="server"
    OnClientClick="SetGenerateButtonClientId(this.id)"
    OnClick="GenerateReport_Click" />
    <asp:Panel runat="server" ID="ReportPanel" BackColor="White" Visible="true">
         <CR:CrystalReportViewer ID="CrystalReportViewer1"
    EnableDatabaseLogonPrompt="false"
    Visible="true" runat="server"
    AutoDataBind="true"
    HasCrystalLogo="False"
    HasDrillUpButton="False"
    HasSearchButton="False"
    HasToggleGroupTreeButton="False" 
    HasZoomFactorList="False"
    HasExportButton="False"
    HasPrintButton="False"
    ShowAllPageIds="True"
    ToolbarStyle-BackColor="WhiteSmoke"
    ToolbarStyle-BorderColor="WhiteSmoke"
    ReuseParameterValuesOnRefresh="True"
    EnableDrillDown="False" 
    BestFitPage="true" 
    ToolPanelView="None" />  

 

Keywords

CRVS CR 2010 2012 blank empty , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio