on 01-13-2022 8:53 PM
I'm using crystal report in my x64 windows system using asp.net. I have a scenario where more than 25 lacs records coming through a dynamic query. using datatable i'm gettign system outof memory issue, so i used on datareader instead datatable. everything works fine but total records of the formula returning 1 value less.
here is my formula
totext(Count ({ado.Student}) ,0) + " records selected" --student is one of the column
Suppose if I got total of 20 records in sql query then it's showing like "20 records selected" it's works fine until I'm using datatable. but it's failed when I changed to datatareader. it's showing like "19 records selected". I verified the sql data before the query execution. and front end also i'm getting the total records. only issue is total records. can any one helps me for this
Are you using a CR SDK to connect to your data reader?
Need more details
Maybe your data reader is zero based and you are using 1 based?
Try this:
totext((Count +1)({ado.Student}) ,0) + " records selected" --student is one of the column
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the link and tables don't have a 1 to 1 match it may miss data.
Be sure to use if isNull to the formulae.
Click the F1 key to get help on using the isnull function or search this tag for more samples
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.