简体   繁体   English

Crystal报表Visual Studio 2008中的分配问题

[英]Allignment Issue in Crystal report Visual Studio 2008

I am using Crystal Report in Visual Studio 2008 and I am here having one main report and 3 other sub reports.I cannot able to make the position for the sub reports all are coming in different alignment. 我在Visual Studio 2008中使用Crystal Report,我在这里有一个主报表和另外3个子报表。我无法为所有子报表建立不同的位置。 I just right click on the main report and insert sub report and browse the report. 我只需右键单击主报告,然后插入子报告并浏览该报告。 Its work fine.The problem are 1) the allignment of the subreports 2) how to hide a subreport when there is no value 它的工作正常。问题是1)子报表的声明2)没有值时如何隐藏子报表

Thanks 谢谢

Hi You could try the following for 2) how to hide a subreport when there is no value 嗨,您可以尝试以下方法2)在没有值时如何隐藏子报表

Right click on the "sub-report" and select "property" On "Format Editor" -> "Common" Tab ->Click on the formula button beside "suppress" then you can try to write COUNT({your datasource name ;1.fieldname})=0 that mean if the row count is 0 then suppress your subreport 右键单击“子报表”,然后选择“属性”。在“格式编辑器”->“公用”选项卡上,>单击“抑制”旁边的公式按钮,然后可以尝试写入COUNT({您的数据源名称; 1 .fieldname})= 0表示如果行数为0,则取消显示子报表

if you add you subreport inside a section, you could do something similar to suppress the whole session. 如果在子节中添加子报表,则可以执行类似的操作来禁止整个会话。

Please correct me if my concept is wrong 如果我的概念不对,请纠正我

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM