Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi,
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">
            </Report>
        </CR:CrystalReportSource>
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))
                {
                    con.Open();
                    SqlDataAdapter da = new SqlDataAdapter(cmd);
                    da.Fill(ds,"myds");
                   
                }
            }
 
              CrystalReport rpt = new CrystalReport();
 //  ReportDocument rpt = new ReportDocument();
   rpt.Load(Server.MapPath("CrystalReport.rpt"));
              CrystalReportViewer1.Visible = true;
   rpt.SetDataSource(ds.Tables["myds"]); 
   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 2:08am
Edited 9-Apr-13 2:33am
v3

1 solution

Rate this: bad
good
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[^]
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 269
1 OriginalGriff 240
2 CPallini 195
3 Maciej Los 177
4 BillWoodruff 173
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 20 Oct 2013
Copyright © CodeProject, 1999-2014
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