Migrated from VS 2003 to VS 2005 and Crystal Reports do not work - need help
-
Hello, I have converted a VS 2003 project that has few Crsytalreports in it to VS 2005. All the dlls got converted well and my application works well except the Crystalreports part. I have a sub routine called ExportReport() in a page called GenerateReport.aspx page. It works fine under VS 2003 which generates the report in a word or excel etc... based on what user selects. But surprisingly it doesn't work in VS 2005. The first line I have in ExportReport() sub routine is Dim myReport as new CrystalReport1 and this works (I mean the I see the CrystalReport1 in the intellisense when I type the "new" key word) perfect in VS 2003. But it doesn't do the same thing in the converted VS 2005 project and I see a blue line underneath. So as a work around I also tried adding CrystalDecisions.CrystalReports.Engine CrystalDecesions.ReportSource CrystalDecisions.Shared CrystalDecisions.Web references to to my VS 2005 project by right clicking on the project and by picking the "Add Reference...". option but it doesn't seem like it hasn't done any thing for me and the IDE (intellisense) still doesn't recognise"CrystalReport1" in my VS 2005. Have any one run into this kind of conversion from VS 2003 to VS 2005? Please advice. Thanks in advance, -L
-
Hello, I have converted a VS 2003 project that has few Crsytalreports in it to VS 2005. All the dlls got converted well and my application works well except the Crystalreports part. I have a sub routine called ExportReport() in a page called GenerateReport.aspx page. It works fine under VS 2003 which generates the report in a word or excel etc... based on what user selects. But surprisingly it doesn't work in VS 2005. The first line I have in ExportReport() sub routine is Dim myReport as new CrystalReport1 and this works (I mean the I see the CrystalReport1 in the intellisense when I type the "new" key word) perfect in VS 2003. But it doesn't do the same thing in the converted VS 2005 project and I see a blue line underneath. So as a work around I also tried adding CrystalDecisions.CrystalReports.Engine CrystalDecesions.ReportSource CrystalDecisions.Shared CrystalDecisions.Web references to to my VS 2005 project by right clicking on the project and by picking the "Add Reference...". option but it doesn't seem like it hasn't done any thing for me and the IDE (intellisense) still doesn't recognise"CrystalReport1" in my VS 2005. Have any one run into this kind of conversion from VS 2003 to VS 2005? Please advice. Thanks in advance, -L
-
VS2003:Dim myReport as new CrystalReport1 VS2005:Dim myReport as new reportdocument myreport.Load(Server.MapPath("CrystalReport1.rpt")) VS2005 has excel export and word export etc.
Hi Daisy, Thanks for the reply. Yes your code helped me to move further and I don't see any compile time errors. But at the line 'myReport.Load() myReport.Load(Server.MapPath("ParishPartIEarlyChildhoodGrade8Report.rpt")) I am getting an "access denied" exception ... here is the error I am getting ************************************************************************************ ?ex {"Load report failed."} Data: {System.Collections.ListDictionaryInternal} HelpLink: Nothing InnerException: {"Access is denied. "} Message: "Load report failed." Source: "CrystalDecisions.CrystalReports.Engine" StackTrace: " at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) at AODOnline.ParishForms301.ParishPartIEarlyChildhoodGrade8Export.ExportReport() in D:\AODSetup\ParishForms301\ParishPartIEarlyChildhoodGrade8Export.aspx.vb:line 147" TargetSite: {System.Reflection.RuntimeMethodInfo} ************************************************************************************ I also did run CRRedist2005_x86.msi from the location "D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports" . I am not sure I should run it on my development box but I did still I get the same access denied exception. Any inputs on this? Thanks, -L
-
Hi Daisy, Thanks for the reply. Yes your code helped me to move further and I don't see any compile time errors. But at the line 'myReport.Load() myReport.Load(Server.MapPath("ParishPartIEarlyChildhoodGrade8Report.rpt")) I am getting an "access denied" exception ... here is the error I am getting ************************************************************************************ ?ex {"Load report failed."} Data: {System.Collections.ListDictionaryInternal} HelpLink: Nothing InnerException: {"Access is denied. "} Message: "Load report failed." Source: "CrystalDecisions.CrystalReports.Engine" StackTrace: " at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) at AODOnline.ParishForms301.ParishPartIEarlyChildhoodGrade8Export.ExportReport() in D:\AODSetup\ParishForms301\ParishPartIEarlyChildhoodGrade8Export.aspx.vb:line 147" TargetSite: {System.Reflection.RuntimeMethodInfo} ************************************************************************************ I also did run CRRedist2005_x86.msi from the location "D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports" . I am not sure I should run it on my development box but I did still I get the same access denied exception. Any inputs on this? Thanks, -L