本文介绍c#应用FastReport开发报表,因此首先附该工具下载地址:http://download.csdn.net/detail/hws1058648831a/6378499
下载解压后可以直接使用,里面还有相关实例供参考。
下面看看一个简单的例子:
1 打开visual studio 2010创建一个工程名称为WfmFastReport,编辑界面,然后添加FastReport.dll ,FastReport.Bars.dll,FastReport.Editor.dll的引用。
FastReport.dll ,FastReport.Bars.dll,FastReport.Editor.dll在下载包里有的。
代码非常简单,如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using FastReport;
using FastReport.Editor;
namespace WfmFastReport
{
public partial cla