zoukankan
html css js c++ java
使用FastReport Studio开发报表(四)
其它未尽事宜,想起来就加点儿:
运行时更改报表模板:
FastReport Studio在显示报表时,先读取报表的模板,然后再从数据集内取得数据写入模板中,最后合并显示。所以在需要更改报表的格式时,只要将报表模板文件更改就可以了。
private
void
button1_Click(
object
sender, EventArgs e)
{
TfrxReportClass report
=
new
TfrxReportClass();
report.LoadReportFromFile(Application.StartupPath
+
"
\\demo.fr3
"
);
report.DesignReport();
}
以上的方式只能更改报表的格式,而不能增删字段,因为字段已经在代码固定,增加字段时需要更改代码赋值,删除时仅可将显示的列设置为非显示。这和在Delphi中的不同,原来给的是数据集,只要给的数据集中字段足够,就可以在报表中任意增删了。也许控件已经提供了这种功能,只是我还没有体会到。
查看全文
相关阅读:
Leetcode Valid Sudoku
Leetcode Surrounded Regions
LeetCode Sqrt
LeetCode POW
LeetCode Next Permutation
ACK-Ackermann, 阿克曼函数
再不懂时序就 OUT 啦!,DBengine 排名第一时序数据库,阿里云数据库 InfluxDB 正式商业化!
阿里云提供全托管 ZooKeeper
性能压测中的SLA,你知道吗?
第一个入驻阿里云自营心选商城,如今它已经是营收过亿的SaaS独角兽
原文地址:https://www.cnblogs.com/wjhx/p/1120957.html
最新文章
bzoj 4819 [Sdoi2017]新生舞会
[USACO Jan09] 安全路径
bzoj 2132: 圈地计划
POJ 2832 How Many Pairs?
bzoj 3218: a + b Problem
[HNOI2014]道路堵塞
bzoj 2561: 最小生成树
为了博多
洛谷 P1865 A % B Problem
洛谷 模拟城市2.0
热门文章
洛谷 P2951 [USACO09OPEN]捉迷藏Hide and Seek
洛谷 P2888 [USACO07NOV]牛栏Cow Hurdles
洛谷 P1576 最小花费
洛谷P1064 金明的预算方案
洛谷P1638 逛画展
洛谷P1658 购物
LeetCode Unique Paths II
LeetCode Unique Paths
LeetCode Decode Ways
Leetcode Sudoku Solver
Copyright © 2011-2022 走看看