水晶报告子报告 [英] Sub Report of Crystal Report

查看:89
本文介绍了水晶报告子报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Crystal报告中采用了一个报告。

我使用vb.net编码该数据源。

在该报告中有两个子报告SubRpt01和SubRpt02。

在SubRpt02中,我想动态。

我想通过vb.net编码增加和减少SubRpt02大小。



i使用



objRpt =新的Desiner.rptMainReport



objRpt.ReportDefinition.ReportObjects( SubRpt02)。宽度= 5000



但它无法正常工作。



如果有人有ans解决方案

请尽快给我回复



Thnx提前:)

解决方案




我担心CR已经在vb.net 2005中删除了这个属性(天知道他们为什么还在玩!!!!!)



您无法修改子报告的顶部...宽度...可见性......等等...



我有一个解决方法..而不是ke在一个部分中填写所有子报表...尝试将每个子报表放在一个部分中







第1节中的子报告1



第2节中的子报告2



第3节中的子报告3 ...



andso on







@ runtime ..尝试隐藏你不想要的部分而不是隐藏子报告使用...



MainReport.Section''X''。SectionFormat.EnableSuppress = True / false。



通过这样做,您可以避免更改子报表的位置,因为它自动定位



问候

I have taken a one Report in Crystal report.
I using vb.net codding for that data source.
In that report two Sub Reports SubRpt01 and SubRpt02.
In that SubRpt02, i want to dynamically.
I want to increase and decrease SubRpt02 Size through vb.net codding.

i using

objRpt = New Desiner.rptMainReport

objRpt.ReportDefinition.ReportObjects("SubRpt02").Width = 5000

But it cant working.

If any one has ans solution
Pls, Give me response as soon as possible

Thnx in advance :)

解决方案

Hi
I''m afraid that CR has removed this property in vb.net 2005(God knows why they are still playing!!!!!)

You cannot modify a subreport its top...width... visibility...etc ...

I''ve a workaround ..Instead of keeping all of the subreports in a single section... try placing each subreport in a section

i.e

Subreport1 in Section1

Subreport2 in Section2

Subreport3 in Section3...

andso on



@ runtime .. try hiding the section you dont want instead of hiding a subreport using...

MainReport.Section''X''.SectionFormat.EnableSuppress = True/false.

By doing this you can avoid changing the position of a subreport as it positions itself automatically

Regards


这篇关于水晶报告子报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆