delphi5中的帮助里对bandtype有这样两句描述: BandType is used to identify the role of a band in the report. Some band types are reserved for special components and should not be used. 还有一些相关的说明,我想,qreport只能完成一些较为简单的工作. 我最近也在作一个报表,比较复杂,需要完全动态创建qreport的所有控件. 但最后我发现这是不可能的. 这是我的看法,针对于你的问题的答案也就是: 根本不能动态设置tqrband的bandtype属性:( 非常抱歉这样说,最近我也很伤心,如果你有什么新的发现,请一定告诉我哦!
BandType is used to identify the role of a band in the report.
Some band types are reserved for special components and should not
be used.
还有一些相关的说明,我想,qreport只能完成一些较为简单的工作.
我最近也在作一个报表,比较复杂,需要完全动态创建qreport的所有控件.
但最后我发现这是不可能的.
这是我的看法,针对于你的问题的答案也就是:
根本不能动态设置tqrband的bandtype属性:(
非常抱歉这样说,最近我也很伤心,如果你有什么新的发现,请一定告诉我哦!
对了,你干吗不直接动态设置quickrep的bands.hastitle和
bands.hascolumnheader的值呢?需要columnheaderband时,设
bands.hascolumnheader为true,不需要的时候就设它为false?
试试看吧.以前的答案.
这样编绎就不行出错啦.