Click here to Skip to main content
Rate this: bad
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 2:08am
Edited 9-Apr-13 2: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
0 OriginalGriff 476
1 Sergey Alexandrovich Kryukov 215
2 CHill60 195
3 Afzaal Ahmad Zeeshan 145
4 TheRealSteveJudge 120
0 Sergey Alexandrovich Kryukov 9,061
1 OriginalGriff 7,920
2 Peter Leow 4,774
3 Kornfeld Eliyahu Peter 3,210
4 Maciej Los 2,176

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