on 04-27-2009 10:42 PM
Well, here's my problem. As the title says, some of my data's repeating itself. I first thought it might come from loops, but it quickly became obvious that it wasn't the case. It's especially strange since my table count doesn't take in consideration the repeated lines.
Here's the part of my code that interests us :
While Not rs.EOF
package = New Package(cnn, CLng(rs.Fields("No_Package").Value))
nbModules = nbModules + package.get_nb_modules
dataset.item.AdditemRow("PACKAGE NO." & package.get_id)
dataset.item.AdditemRow("Has " & package.get_nb_modules & " modules")
dataset.item.AdditemRow("Date : " & package.get_date_creation)
dataset.item.AdditemRow("Actual nb of rows : " & dataset.item.count)
rs.MoveNext()
End While
It should get me something like this :
PACKAGE NO.X
Has X modules
Date : [some date]
Actual nb of rows : 3
[and so on]
But here's what I get :
PACKAGE NO.X
PACKAGE NO.X
Has X modules
Has X modules
Date : [some date]
Date : [some date]
Actual nb of rows : 3 [<-- odd]
[and so on]
If it's a known bug or issue, I'd really like to know how to solve it. In any case, I haven't modified any parameters regarding my fields, report or printer.
Thanks.
Edited by: carle_al on Apr 27, 2009 11:45 PM
Hi,
Information required:
- Visual Studio version.
- Crystal Report product used with patch level.
- Type of application (wind/web)
- How does the report behave in designer?
- Are you trying to assign the fields in the report on the fly?
Thanks,
AG.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Visual Studio 2005 (version 8.0).
Crystal Report v10 (with the label Business Object, used in the studio). Can't tell the patch level though.
Window application.
In designer and preview everything goes just fine, as with the header and footer fields. My only problem goes with the "body" (not sure it's the right name, I use a french version).
Not sure neither of what you mean by on the fly. Once the program starts, I fill my dataset and send my report to a report viewer for testing. I checked how it behave when printed directly and it ain't got any better.
Here's the part where I send it to the CRviewer :
cr.SetDataSource(dataset)
CRviewer.ReportSource = cr
Nothing fancy.
Thanks.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.