[原]ActiveReport6 for net使用(一)

最近公司买了一个ActiveReport6 for net,主要是为了生成tif文件,可以传真用,水晶报表没有这个功能.
写下在项目中的使用备忘:
1.安装:安装时会提示输入购买时的"Registered User","Serial Number",和一个Eamil.并且要连接到官方服务器注册.所以必须要联网才可以注册.当然,不注册,什么都不填,就是试用版,生成的报表会有官方的信息,类似Crystal Report.以后要注册成正式版,只有运行安装程序,会出来四个选项,第三个就是注册.
官方程序可以在http://www.datadynamics.com/forums/72/ShowForum.aspx
我也发布了一个(分成了三外包):http://jamin8.download.csdn.net/
The product you purchased can be licensed on your developer machine by rerunning the installation from the evaluation version of the product. When you run the installation it will give you the opportunity to enter your serial number.
一个用户名,只能注册一次,太小气了.
2.帮助:网上没有搜到什么有价值的东东.最好的还是:我的文档中的GrapeCity\ActiveReports 6\Samples和程序菜单里面的ActiveReports 6 Documentation for Visual Studio 2005
3.当给rpt文件动态邦定数据时,如果有算定义的rpt.Fields.Add("XXX");rpt.Fields["XXX"].Value="Jamin".又有rpt.DataSource=DataTable时,只能先邦定DataSource,如果先邦定了算定义变量,则算定义变量会看不见.郁闷.
4.rpt.DataSource只能是DataTable ,SqlDataReader 之类的,反正一名话,就是单表.当然可以邦定DataSet, 但是要指定DataMember.就是哪个表的表名,还不如用DataTable省点事.
5.邦定数据,可以在Report Explorer6 中的Fields的Bound中拖.也可以自己加ActiveReports6 的TextBox,Lable有DataField属性,直接写帮定有的字段名就可以了.算定义变量就邦定变量名.
6.在分组Group时,用SQL取主从表.再把关联字段在groupHeader中的DataField属性邦定.与Crystal Report 一样,操作简化了一点.
原文地址:https://www.cnblogs.com/jamin/p/1753735.html