Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Migrated from VS 2003 to VS 2005 and Crystal Reports do not work - need help

Migrated from VS 2003 to VS 2005 and Crystal Reports do not work - need help

Scheduled Pinned Locked Moved ASP.NET
visual-studiohelpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Slow Learner
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • S Slow Learner

      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

      D Offline
      D Offline
      daisylh
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      0
      • D daisylh

        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.

        S Offline
        S Offline
        Slow Learner
        wrote on last edited by
        #3

        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

        D 1 Reply Last reply
        0
        • S Slow Learner

          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

          D Offline
          D Offline
          daisylh
          wrote on last edited by
          #4

          reference: http://forums.microsoft.com/msdn/showpost.aspx?postid=1018839&siteid=1&mode=1&sb=0&d=1&at=7&ft=11&tf=0&pageid=0[^] http://msdn2.microsoft.com/en-us/library/ms225490(VS.80).aspx[^] Hope this helps

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups