水晶报表在Internet Explorer中显示黑屏 [英] crystal report is displaying blank screen in Internet explorer

查看:56
本文介绍了水晶报表在Internet Explorer中显示黑屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

asp.net mvc水晶报表在Internet Explorer 10中显示空白屏幕,但是同一报表在chrome和firefox中可以正常工作.任何人都可以提出建议吗?预先感谢.

asp.net mvc crystal report is displaying blank screen in Internet explorer 10.But the same report is working properly in chrome and firefox. Can anyone give a suggestion? Thanks in advance.

推荐答案

谢谢nilesh.那解决了问题.在水晶报表查看器中,我们必须添加以下代码:

Thank you nilesh. That solved the issue. In the crystal report viewer we have to add the following code:

<meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1" />  

以下是示例.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportViewer.aspx.cs" Inherits="Project1.Web.ReportViewer.ReportViewer" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="X-UA-Compatible" content="IE=9"/>


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" 
        AutoDataBind="True" GroupTreeImagesFolderUrl="" Height="50px" 
        ReportSourceID="CrystalReportSource1" ToolbarImagesFolderUrl="" 
        ToolPanelWidth="200px" Width="350px" PrintMode="ActiveX" />
    <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
        <Report FileName="~/Reports/Report1.rpt">
        </Report>
    </CR:CrystalReportSource>

</div>
</form>

这篇关于水晶报表在Internet Explorer中显示黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆