简体   繁体   中英

How to limit the display of rows in crystal report depending on a threshold value

I am new to StackOverflow and .net development. I am trying this requirement for one of my assignments.

I am using SQL server Management Studio express as the Database. I have a table where I have columns named Serial Number and Amount.

Payment Table

Sl_No Amount

1           100
2           200
3           100
4           200
.....       ....

In the UI page, user enters a threshold amount. For Ex: 350 is the threshold value

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:

Sl_No Amount

1           100
2           200

In the next crystal report page, i want the next rows with the threshold value condition. 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.

Sl_No Amount

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.

在“部分专家”中,选择“详细信息”部分,然后使用阈值为“之后的新页面”创建一个公式

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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