如何使用Devexpress报告在asp.net页面中显示报告? [英] how to show the report in asp.net page using Devexpress report?

查看:158
本文介绍了如何使用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?


这篇关于如何使用Devexpress报告在asp.net页面中显示报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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