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

2.删除business object 数据源

3.使用代码添加数据源

ParcelChangeItem change = new ParcelChangeItem();
string filename = @"D:\worki\xxx信息.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.再绑定报表各字段,字段上右键,选设计。

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();

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

其他类型使用待补充

列表及底部边线

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报表使用笔记的更多相关文章

  1. jQuery + Stimulsoft.Report 选择gridview多行打印

    jQuery + Stimulsoft.Report 报表空间打印多个ID split函数,多行ID 1. 获取选择多行ID(前台) //按钮-打印 function PrinterWorkQuali ...

  2. Stimulsoft.Report.net报表简单实用

    1 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System. ...

  3. Stimulsoft报表操作笔记(一):统计

    一.引言 报表大家应该都知道是什么,简单来说就是用表格.图表等格式来动态显示数据.现在web系统中很多需要使用到报表统计.打印功能等,将所需用到的数据绑定到指定的位置,然后分类汇总,这样查看起来更清晰 ...

  4. stimulsoft report工具—— 简单的多表连接打印报表例子

    一.用报表工具打印多个表格信息(包括学生表.教师表.班级表) 1.准备打印的数据(用sqlserver) 1)班级表

  5. 二十六、【开源框架】EFW框架Winform前端开发之Grid++Report报表、条形码、Excel导出、图表控件

    回<[开源]EFW框架系列文章索引>        EFW框架源代码下载V1.2:http://pan.baidu.com/s/1hcnuA EFW框架实例源代码下载:http://pan ...

  6. 机房收费系统中的Grid++Report报表设计器的应用

    在进行账单查询功能的时候我应用了Grid++Report报表设计器,下面我就为大家介绍一下,还望大家多多指点. 首先,在Grid++Report报表设计器中进行报表界面的设置.在属性编辑窗口中这里对报 ...

  7. Grid++Report 报表开发工具

      Grid++Report 报表开发工具   版本 更新日期 大小 下载 说明 Grid++Repoert6.0.0.6 2015/08/08 16.0M [下载] 锐浪报表工具最新版本,新增功能说 ...

  8. Stimulsoft.Report.web viewer控件添加按钮

    当你购买了带源码的时候,你可以对源码进行修改以达到自己想要的效果,比较这里讲到的,向viewer控件工具栏添加按钮. 通过源码目录可以看出我们需要修改的有两部分代码 红色方块圈中的部分,[StiWeb ...

  9. Grid++Report报表工具C/S实战篇(五)

    一.课程介绍 本次分享课程属于<C#高级编程实战技能开发宝典课程系列>中的第五部分,阿笨后续会计划将实际项目中的一些比较实用的关于C#高级编程的技巧分享出来给大家进行学习,不断的收集.整理 ...

随机推荐

  1. Search Insert Position

    int searchInsert(int* nums, int numsSize, int target) { ; ); ; int mid; while(low<=high){ mid=(lo ...

  2. 打算从oschina的博客搬运到cnblog了

    如题,感觉cnblog似乎要更加专业一点,顺便也禁水.提高下文章质量 以后就都是干货了 oschina原址 顺便庆祝一下Windows Live Writer配置成功

  3. Win10下SQLServer2000的安装

    Win10的技术预览版已经发布近两个星期了,我也迫不及待地装上尝鲜,发现SQLServer2000在Win10上无法安装,在翻遍网上资料和经过无数次尝试后得到了一种安装方法,希望能够帮助遇到类似问题的 ...

  4. var关键字获取数据类型

    using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threa ...

  5. logstash无法使用conf启动

    最近刚开始学习使用logstash,再安装好后准备验证下第一个demo的时候,出现了问题 Error: Expected one of #, input, filter, output at line ...

  6. rake :You have already activated rake 10.1.0

    rake aborted! You have already activated rake 10.1.0, but your Gemfile requires rake 10.0.3. Using b ...

  7. 使用7-zip制作自解压安装包

    7-zip制作自解压包很方便,只要在压缩时选择”创建自释放程序”选项. 而自解压安装包有点麻烦,不如WinRAR方便. 准备工具:下载 LZMA SDK 这里面有 7zSD.sfx (16.04版7z ...

  8. 【zz】MIT牛人解说数学体系

    作者:林达华 一.为什么要深入数学的世界 作为计算机的学生,我(原作者)没有任何企图要成为一个数学家.我学习数学的目 的,是要想爬上巨人的肩膀,希望站在更高的高度,能把我自己研究的东西看得更深广一些. ...

  9. MySQL查询语句完整语法解析

  10. Jenkins若干小问题

    1. Jenkins上不能直接在shell中调用scp命令来执行上传下载操作,核心问题是scp需要输入密码. 为了可以直接将密码传递过去.我们安装  sshpass 来透传密码 a. 安装sshpas ...