当前位置:编程学习 > VB >>

Crystal Report

怎么在报表循环打印多条相同的数据(最终的效果是在窗体的一个报表中显示多个相同的数据)

比如:

数据(DataSource)是一个DataTalbe(是一个一列多行的DataTable):
你好


变成

你好

你好

你好

你好
...

可以用循环吗? --------------------编程问答-------------------- you can create data like this, then set the data to the report --------------------编程问答-------------------- 弄一临时表里去,或者写这样的语句传给报表
select col1 from tablename where col1='T1'
union all 
select col1 from tablename where col1='T1'
union all 
select col1 from tablename where col1='T1'
union all 
select col1 from tablename where col1='T1'
union all 
select col1 from tablename where col1='T1' --------------------编程问答-------------------- 你用的是vs自带的Crystal Report?
要是这个的话,你把数据放在datatable里面 ,然后把字段拖到Crystal Report详细里面就行了,它自己循环。
补充:VB ,  数据库(包含打印,安装,报表)
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,