• 大小: 891KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-08
  • 语言: C#
  • 标签: RDLC  报表示例  

资源简介

C#中的RDLC报表开发示例,包含15个示例,包含RDLC的各种基本的功能。

资源截图

代码片段和文件信息

using System;
using System.Windows.Forms;
using Microsoft.Reporting.WinForms;

public class Demo : Form 
{
    public Demo()
    {
        this.Text = “Report Control Demo“;
        this.ClientSize = new System.Drawing.Size(950 600);

        ReportViewer reportViewer = new ReportViewer();

        // Set Processing Mode

        reportViewer.ProcessingMode = ProcessingMode.Local;

        // Set RDL file

        reportViewer.LocalReport.ReportPath = “Report1.rdlc“;
        reportViewer.LocalReport.AddTrustedCodeModuleInCurrentAppDomain(
                “Util Version=0.0.0.0 Culture=neutral PublicKeyToken=null“);

        // Add the reportviewer to the form

        reportViewer.Dock = Dockstyle.Fill;
        this.Controls.Add(reportViewer);

        // Process and render the report

        reportViewer.RefreshReport();
    }

    [STAThread]
    public static int Main(string[] args) 
    {
        Application.Run(new Demo());
        return 0;
    }
}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-09-11 16:32  CustomAssembly\
     目录           0  2011-09-11 16:32  CustomAssemblyAccessFS\
     文件         186  2005-10-28 16:20  CustomAssemblyAccessFS\build.cmd
     文件          30  2005-10-28 16:25  CustomAssemblyAccessFS\data.txt
     文件        1174  2005-10-28 16:24  CustomAssemblyAccessFS\Demo.cs
     文件        4096  2005-10-28 16:25  CustomAssemblyAccessFS\Demo.exe
     文件        1320  2005-10-28 16:24  CustomAssemblyAccessFS\Report1.rdlc
     文件         260  2005-10-28 16:19  CustomAssemblyAccessFS\Util.cs
     文件        3072  2005-10-28 16:25  CustomAssemblyAccessFS\Util.dll
     文件         186  2005-10-28 16:12  CustomAssembly\build.cmd
     文件        1015  2005-10-28 16:16  CustomAssembly\Demo.cs
     文件        4096  2005-10-28 16:17  CustomAssembly\Demo.exe
     文件        1350  2005-10-28 16:17  CustomAssembly\Report1.rdlc
     文件         183  2005-10-28 16:11  CustomAssembly\Util.cs
     文件        3072  2005-10-28 16:17  CustomAssembly\Util.dll
     目录           0  2011-09-11 16:32  Customers\
     目录           0  2011-09-11 16:32  Customers\bin\
     目录           0  2011-09-11 16:32  Customers\bin\Debug\
     文件       66089  2005-09-12 18:34  Customers\bin\Debug\Customers.csv
     文件       36864  2005-09-12 20:53  Customers\bin\Debug\DemoApp.exe
     文件       34304  2005-09-12 20:53  Customers\bin\Debug\DemoApp.pdb
     文件        5632  2005-12-08 14:51  Customers\bin\Debug\DemoApp.vshost.exe
     文件        1708  2005-09-12 17:19  Customers\Customer.cs
     文件       66089  2005-09-12 18:34  Customers\Customers.csv
     文件       10635  2005-09-12 20:32  Customers\Customers.rdlc
     文件        3905  2005-09-12 20:50  Customers\DemoApp.csproj
     文件         902  2005-09-12 17:10  Customers\DemoApp.sln
     文件       19456  2008-02-28 16:10  Customers\DemoApp.suo
     文件        3629  2005-09-12 20:53  Customers\MainForm.cs
     文件        7186  2005-09-12 20:53  Customers\MainForm.Designer.cs
     文件        6023  2005-09-12 20:53  Customers\MainForm.resx
............此处省略258个文件信息

评论

共有 条评论