XtraReport.ShowPerview()报"The method or operation is not supported"的错误
我的DXperience工具是11.1.8的,已经破解了,我是用Winform的Report Designer设计的repx文件,我用的开发工具是VS2010,然后在Asp.Net的页面后台加载这个文件,用XtraReport控件显示报表,但是每当程序运行到XtraReport的ShowPerview方法时都会报"The method or operation is not supported"的错误,刚开始遇到这个错误时,我以为是我少添加了引用,我就根据Devexpress的帮助文档http://documentation.devexpress.com/#XtraReports/CustomDocument9367添加了这些引用,但是任然报这个错;于是我就在其他本版的DXperience(10.1.5)环境下做测试,也是报这个错。下面是我用VS2010写的一个demo:
此问题本人纠结了很久,找过很多文档资料,始终没有解决,但求高人指点,谢谢。
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default1.aspx.cs" Inherits="Web.Default1" %>
<%@ Register Assembly="DevExpress.XtraReports.v11.1.Web, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
Namespace="DevExpress.XtraReports.Web" TagPrefix="dx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<dx:ReportViewer ID="rvDemo" runat="server" onload="rvDemo_Load"></dx:ReportViewer>
</div>
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevExpress.XtraReports.UI;
namespace Web
{
public partial class Default1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void rvDemo_Load(object sender, EventArgs e)
{
XtraReport xr = new XtraReport();
xr.LoadLayout(@"C:\Users\Default\Desktop\DXexpress Demo\DXexpress\Web\File\Report1.repx");
xr.ShowPreview();
}
}
}
此问题本人纠结了很久,找过很多文档资料,始终没有解决,但求高人指点,谢谢。
...全文


