Click here to Skip to main content
13,297,547 members (47,796 online)
Click here to Skip to main content
Add your own
alternative version


14 bookmarked
Posted 1 Apr 2008

Solving a Nasty Bug in VS2005 Crystal Reports

, 23 Jun 2010
Rate this:
Please Sign up or sign in to vote.
Crystal Reports producing odd results? Dont do what we did!


Problems with Crystal Reports in VS2005? Odd results? You might be able to save yourself from the stupidity I have just been through...


Although this is an adventure in stupidity (on our part), we are presenting this here at CodeProject to maybe save some other poor soul later on who falls into the same trap we did.

The Problem? You use Crystal Reports that comes with Visual Studio 2005 to develop some reports for your application. In our case, we were building a reporting tool that takes SQL Server data sets and, through stored procedures, feeds the Crystal Reports.

Life was good right up until we started distributing the reports - even in-house. That is, the reports worked and looked great on one machine running a local instance of SQL Server, but as soon as we moved the application for testing, weirdness arrived.

On any other machine, our reports continued to use the stored procedures and data looked fine, but the parameters from our application used to generate the reports did not show in the report headers! Clearly, the underlying SQL had the parameters because data was the same on any machine, any instance of SQL Server. But on any machine other than that machine where the reports were designed and produced, the Report Headers did not show the parameters.

Using the code

For two weeks we tried everything we could think of to debug this problem. We tweaked code again and again and wrote various interrupts to see what was happening to those parameters!

We contacted Business Objects and reported the problems and then spent days (!!!) monkeying around with them trying to confirm our registration number. (In fact, these guys spent MORE time playing registration games with us than helping - and wait until you hear the "fix").

On a Friday afternoon I had to report to our company President that though we had the application and the reports done, we had a nasty bug that prevented any release. We had tried some very complex solutions - nothing worked. I was pretty sure my head would roll because this was an important application that a client was waiting for. The company President said 'stick with it' and gave us a weekend's breathing space.

On a whim I called an old friend on Saturday and was talking to him about this. He had never heard of such a problem but at one point casually asked "did you check for any Service Packs for Crystal Reports?" I said no, not directly, but that I was pretty sure we were up to date on Service Packs (thinking correctly that the Visual Studio Service packs would have included any Crystal Reports Service packs)...

They didn't - and THERE is the solution.

I went to the office on Saturday, went to the Business Objects site and scoured it for any Service Pack for Crystal Reports for VS2005. Indeed, there was one. I installed the Service and voila, the problem went away - parameters now printed out just fine.

Obviously, only a developer could be as stupid as I was - seeking complex solutions to an easy problem. I've been at this game for decades, and yet again, there I go frustrating myself never presuming to check the easiest thing first.

Points of Interest

Moral of the story? Don't be stupid like me. Don't write tons of code to check and hopefully resolve a problem. Use the KISS (Keep it simple stupid!) principal first.

If anyone is having oddities with Crystal Reports for VS2005, make sure (first thing!) that you are fully up to date with Service Packs and DO NOT depend on just Microsoft's packs - go to the Business Objects site ( and check for any updates.

Thanks to a friend, my job was saved and we are running fine now. And once again I have learned that the easiest solution is usually best checked first, NOT weeks after wasting hours and hours trying to resolve something.

And oh yes, if you go to the Business Objects site looking for help, be sure to be prepared to get no help without a blood test, urine sample, offer of your firstborn, and probably more as these boneheads could not answer a simple question without first doing more background checking than the FBI does on world renowned terrorists. Had they simply asked "are you up to date on OUR Service packs" it would have saved days I spent trying to give them all the information they wanted just so I could ask my simple question.

Support? They don't know the word - but alas - my stupidity is at fault too...

I hope no one else has to deal with a mess like this has been!


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

No Biography provided

You may also be interested in...

Comments and Discussions

GeneralJust One Exception :-( Pin
azam31630-Dec-10 5:08
memberazam31630-Dec-10 5:08 
GeneralRe: Just One Exception :-( Pin
BruceL30-Dec-10 5:47
memberBruceL30-Dec-10 5:47 
GeneralRe: Just One Exception :-( Pin
azam31631-Dec-10 8:00
memberazam31631-Dec-10 8:00 
GeneralRe: Re: Just One Exception :-( Pin
azam3161-Jan-11 19:24
memberazam3161-Jan-11 19:24 
GeneralThanks for sharing Pin
Walt Fair, Jr.23-Jun-10 16:48
subeditorWalt Fair, Jr.23-Jun-10 16:48 
GeneralThanks Pin
Apocwhen1-Apr-08 23:58
memberApocwhen1-Apr-08 23:58 
GeneralStupidity Pin
B.Tanner1-Apr-08 8:59
memberB.Tanner1-Apr-08 8:59 
GeneralA positive experience for me Pin
Vicmart691-Apr-08 8:20
memberVicmart691-Apr-08 8:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.171207.1 | Last Updated 23 Jun 2010
Article Copyright 2008 by BruceL
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid