如何使用Devexpress报告在asp.net页面中显示报告?
问题描述:
大家好,
asp.net中的DevExpress报告向导中的新内容c#
我正在尝试使用xtrareports在我的网页上显示报告。
i已在xtrareports中完成报告设计。
但我无法在我的网页上显示设计。
i尝试下面代码在我的网页上显示报告,但我收到以下错误,
请看下面的代码,
please请给我一个解决方案。
我的错误是:
对象引用没有设置为对象的实例。
我的代码是:
Hi all,
Am new in DevExpress Report wizard in asp.net c#
am trying to show the report on my web page using xtrareports.
i have done the report design within the xtrareports.
but i cannot show the design on my web page.
i tried below code to show the report on my web page but am getting the below error,
please have a look at the code below,
please drop me a solution for this.
my error is :
Object reference not set to an instance of an object.
my code is :
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;
using DevExpress.XtraReports.Web;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
// Create a report.
XtraReport1 report = new XtraReport1();
// Show the report's preview.
ReportPrintTool tool = new ReportPrintTool(report);
tool.ShowPreview();
}
}
提前感谢...
thanks in advance...
答
pudiste solucionar tu problema?
pudiste solucionar tu problema?