本文介绍了Crystal Report无法在IE 10中查看,但能够在chrome,mozilla,apple中查看的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我有ms vs2012和sap水晶报告, 我的源代码 < CR:CrystalReportPartsViewer ID = CrystalReportPartsViewer1 runat = server AutoDataBind = true / > < CR: CrystalReportViewer ID = CrystalReportViewer1 runat = server AutoDataBind = True GroupTreeImagesFolderUrl = 高度 = 1202px ReportSourceID = CrystalReportSource1 ToolbarImag esFolderUrl = ToolPanelView = 无 ToolPanelWidth = 200px 宽度 = 903px / > < CR:CrystalReportSource ID = CrystalReportSource1 runat = server > < 报告 FileName = CrystalReport.rpt > < / Report > < / CR:CrystalReportSource > 我的aspx.cs代码隐藏代码为 使用(SqlConnection con = new SqlConnection( 数据源= DCS_SERVER;初始目录= sandip;用户ID = sa;密码= sa123)) { 使用(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; 我能够在浏览器中看到导出按钮,但无法查看我在报表查看器中绑定的数据,我可以将数据导出为好吧,我只能看到主报告选项卡。 我的代码只能在IE 10中工作,但是在ie10的兼容视图和浏览器的其余部分工作我的代码正在工作 请帮助解决方案 将其添加到您的水晶报告查看器页面。 < meta http-equiv = X-UA兼容 content = IE = 9 / > Crystal报告适用于Firefox但不适用于IE 10 [ ^ ] 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 workingPlease help 解决方案 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[^] 这篇关于Crystal Report无法在IE 10中查看,但能够在chrome,mozilla,apple中查看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
11-02 09:31