I have a windows forms project that I originally created using visual studio 2008. I decided to upgrade it to visual studio 2010. My project includes several crystal reports (also created with visual studio 2008). I installed vs2010, created a new project, and added the forms and crystal reports from the vs2008 version. When I tried to compile my project I was informed that crystal reports was not automatically installed with vs2010. So I installed crystal reports for 2010. At some point I opened a crystal report in the designer of vs2010 to make sure it showed up and to prove to myself that I had indeed installed the crystal reports for 2010. It opened fine and when I closed the report again I was prompted: Did I want to save the report to the newer version of crystal reports? I said yes, figuring it would be best to just upgrade it all now instead of having some reports as old version and some as new versions later.
Now, when I get to the code that actually creates the report, I get an error. Even worse, it's the kind of error that won't even let me debug:
[MyProgramName].vshost.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
And then it has stuff about sending an error report, etc.
The line of code that it blows on is:
reportDocument1.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, instrFile)
(I never actually display a crystal report in a viewer. I always just convert it to a PDF to show to my users. So this code statement is where the report is actually being created. I already set the data source and login stuff.)
Has anyone converted a vs2008 crystal report to vs2010? I have a feeling I'm just missing some step but I'm not able to find much information on my exact scenario via google. Does anyone have an idea for me?