stimulsoft Report报表使用笔记

摘要:
1.使用设计器设计mrt报告模板,或从其他文件复制和修改2.删除businessobject数据源3.使用代码添加数据源ParcelChangeItemchange=newParcelChangeItem();Stringfilename=@“D:workixxx信息.mrt”;刺激软件报告。StiReportreport=newStiReport();report.加载

1.使用设计器设计mrt报表模板,或者从其他文件复制修改

2.删除business object 数据源

stimulsoft Report报表使用笔记第1张

3.使用代码添加数据源

ParcelChangeItem change = new ParcelChangeItem();
string filename = @"D:workixxx信息.mrt";
Stimulsoft.Report.StiReport report = new StiReport();
report.Load(filename);
report.Dictionary.Clear();
report.RegBusinessObject("parcel", parcel);
report.Dictionary.SynchronizeBusinessObjects(1);
report.Dictionary.Synchronize();
report.Save(filename);

4.再绑定报表各字段,字段上右键,选设计。

stimulsoft Report报表使用笔记第2张

5.使用

RegcardEx aa = new RegcardEx()
{
  ExIndex = "22",
  RegDate = "2015-9-9",
  RegType = "初始登记",
  RegContent = "aaaaa"
};
RegcardParcel parcel = new RegcardParcel()
{
  ParcelCode = "aaaaaa",
  IsAreaUnitSquaremeter = true, 
  OwnerName = "xt张三",
  CardExItem = aa
};
StiReport report = new StiReport();
report.Load(@"F:stimulsoft报表报表模板土地登记卡.mrt");
report.RegBusinessObject("land", "Regcard", parcel);
report.Compile();
report.Render(true);
report.Show();

stimulsoft Report报表使用笔记第3张

注意,定义的对象,类名,与报表里的名称关键字不可以重名,否则报对象已存在错误。

其他类型使用待补充

列表及底部边线

stimulsoft Report报表使用笔记第4张

stimulsoft Report报表使用笔记第5张

List<RegcardEx> cers = new List<RegcardEx>() {
new RegcardEx(){ExIndex = "22",RegDate = "2015-9-9",RegType = "初始登记",RegContent = "aaaaa" },
new RegcardEx(){ExIndex = "22",RegDate = "2015-9-9",RegType = "初始登记",RegContent = "aaaaa" },
new RegcardEx(){ExIndex = "22",RegDate = "2015-9-9",RegType = "初始登记",RegContent = "aaaaa" },
new RegcardEx(){ExIndex = "22",RegDate = "2015-9-9",RegType = "初始登记",RegContent = "aaaaa" },
};
StiReport report = new StiReport();
report.Load(@"F:stimulsoft报表报表模板土地登记卡续表.mrt");
report.RegBusinessObject("land", "cardex", cers);
report.Compile();
report.Render(true);
report.Show();
}

免责声明:文章转载自《stimulsoft Report报表使用笔记》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇mysql一个字段多个值如何分别取出这些值MVVM框架在unity开发中的使用下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

用dockerfile创建jmeter的docker镜像

网上多是创建docker镜像是从jmeter官方下载jmeter的tgz包 今天我们用本地已经下载好的tgz包。 以下是dockerfile FROM java:8 ENV http_proxy "" ENV https_proxy "" RUN mkdir /jmeter RUN cd /jmeter ENV JMETER_VERSION=5.1....

pytest测试报告allure

1.python安装allure插件,pip install allure-pytest(PS:安装完成之后,打开一个你之前写的pytest脚本,看能不正常使用,如果报错:AttributeError: module 'allure' has no attribute 'severity_level'这个是之前 pytest-allure-adaptor...

FastReport VCL4.9发布

FastReport VCL 4.9发布 磐岩科技——控件中国网(ComponentCN.com)核心合作伙伴俄罗斯FastReport公司近日宣布 FastReport VCL版报表控件产品发布V4.9版, FastReport VCL是一个非常著名的VCL报表控件,可以帮助您的应用程序快速高效地生成报表。 FastReport提供全面的报表开发工具,...

【性能分析】使用Intel VTune Amplifier

本文转自https://software.intel.com/zh-cn/blogs/2010/11/10/amplxe-cl/版权归原作者所有,如原作者有任何不允许转载之理由,本文将自行删除。Intel® VTune™ Amplifier XE 2011 是新一代的性能分析工具,含图形界面以方便分析结果。但有时我们基于二点原因需要使用命令行来收集性能数据...

水晶报表(crystal report )中显示CheckBox

1,在crystal report 报表的右边field explorer导航栏里面 新建一个formula field 并命名,最后的时候把拖个来的field 字体改为Wingdings 2,右键edit刚建好的formula field ,写一个控制checkbox 显示的表达式如下: if {Command.CLAIMANT_SIGNATURE_FL...

【原创】大叔经验分享(21)yarn中查看每个应用实时占用的内存和cpu资源

在yarn中的application详情页面 http://resourcemanager/cluster/app/$applicationId 或者通过application命令 yarn application -status $applicationId 只能看到应用启动以来占用的资源*时间统计,比如: Aggregate Resource Allo...