[英]How to limit the display of rows in crystal report depending on a threshold value
I am new to StackOverflow and .net development. 我是StackOverflow和.net开发的新手。 I am trying this requirement for one of my assignments. 我正在为我的一项任务尝试这一要求。
I am using SQL server Management Studio express as the Database. 我正在使用SQL Server Management Studio Express作为数据库。 I have a table where I have columns named Serial Number and Amount. 我有一个表,其中有名为序列号和金额的列。
1 100
2 200
3 100
4 200
..... ....
In the UI page, user enters a threshold amount. 在UI页面中,用户输入阈值量。 For Ex: 350 is the threshold value 例如:350是阈值
so when the crystal report generation button is clicked, The crystal report should display only the following rows in the first page since it is less than threshold value: 因此,当单击水晶报表生成按钮时,由于水晶报表小于阈值,因此该水晶报表应仅在第一页显示以下行:
1 100
2 200
In the next crystal report page, i want the next rows with the threshold value condition. 在下一个Crystal Report页面中,我希望具有阈值条件的下一行。 I have to limit the display of rows in the Crystal report as soon as the sum of the rows of Amount column cross the Threshold value. 一旦Amount列的行总和超过Threshold值,我必须限制Crystal报表中的行显示。
3 100
4 200
How can I achieve this? 我该如何实现? I tried searching in various forums. 我尝试在各种论坛中搜索。 I tried with Format Formula editor in visual studio 2008. 我尝试在Visual Studio 2008中使用“格式公式”编辑器。
在“部分专家”中,选择“详细信息”部分,然后使用阈值为“之后的新页面”创建一个公式
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.