Hello, everybody!
I'm new to this forum and I already have a question! I couldn't find anybody with the similar problem.
I have a report in Crystal Report with selection criteria that runs perfectly inside of Crystal Report.
When I try to view this report in my Visual Studio application with Crystal Report Viewer, it looks like it's not going to my selection criteria. For example: {PARTCONDITION.CONDITION} = "New". My report just needs to show parts with the condition New. It's fine in Crystal but in Visual Studio shows all the kind of conditions....
What can be causing this???? Does anybody know?
My other reports work fine, this one is the only one with problems.... And it's the only one I don't have to pass parameter.
By the way, I'm using C#.
Thank you in advance, guys!!!!!
Loading
Patricia ProbstPosted Aug 2, 2007, 10:42 AM
Yes.... Both are Crystal Reports XI Release 2....
I kind of found the problem but it's weird. I'm knew to C# (I'm C programmer learning C#).
I created all my crystal report viewer code with a tutorial and I don't know what I did on the beggining but the method ConfigureCrystalReports() is called twice (once by the crystal report viewer load and once by the form load). I tried to fix it, taking off the call by the load form but then this problem start to happen. When I put it back, my report started to work fine. I tried to find the causes of this but nothing....
Thanks for your help anyway!
Mahesh ChandPosted Aug 2, 2007, 9:49 AM
Are you using same CR versions (10) for Visual Studio and Crystal Professional? I had this kind of problems when I was using CR 9.0 for reports and Visual Studio was using CR 10. By default, Visual Studio may install seperate Crystal DLLs.
Second problem I noticed, some formulae don't work in Visual Studio. I had to remove the formulae and had to find some alternative ways to do the same.
Hope it guides you in the right direction.