Click here to Skip to main content
13,091,134 members (93,319 online)
Rate this:
Please Sign up or sign in to vote.
I have ms vs2012 and sap crystal report,

my source code
<CR:CrystalReportPartsViewer ID="CrystalReportPartsViewer1" runat="server" AutoDataBind="true" />
       <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True" GroupTreeImagesFolderUrl="" Height="1202px" ReportSourceID="CrystalReportSource1" ToolbarImagesFolderUrl="" ToolPanelView="None" ToolPanelWidth="200px" Width="903px" />
       <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
           <Report FileName="CrystalReport.rpt">

my aspx.cs codebehind code as
          using (SqlConnection con = new SqlConnection("Data Source=DCS_SERVER;Initial Catalog=sandip;User ID=sa;Password=sa123"))
                using (SqlCommand cmd = new SqlCommand("select * from PersonName ", con))
                    SqlDataAdapter da = new SqlDataAdapter(cmd);
              CrystalReport rpt = new CrystalReport();
 //  ReportDocument rpt = new ReportDocument();
              CrystalReportViewer1.Visible = true;
   this.CrystalReportViewer1.ReportSource = rpt;

I am able to see export button in the browser but not able to view the data which i have binded in the report viewer ,i can export data as well ,I only can see main report tab.

my code is only not working in IE 10 ,but working in compatible view of ie10 and rest of the browser my code is working
Please help
Posted 9-Apr-13 1:08am
Updated 9-Apr-13 1:33am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Add this to your crystal report viewer page.
<meta http-equiv="X-UA-Compatible" content="IE=9"/>

Crystal report works on Firefox but not on IE 10[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 20 Oct 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100