Results 1 to 6 of 6

Thread: [Resolved] How to declare Crystal Report in VB .Net

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    Thumbs up [Resolved] How to declare Crystal Report in VB .Net

    I changed from MS .Net 2002 to VB .Net 2003.

    I have a web page where I have crystal reports.

    I also upgraded too Crystal Reports 10

    This is my code.

    VB Code:
    1. Imports CrystalDecisions.CrystalReports.Engine
    2. Imports CrystalDecisions.Shared
    3. Imports System.IO
    4.  
    5. Public Class PriceCheckPrintView
    6.     Inherits System.Web.UI.Page
    7.     Protected WithEvents CrystalReportViewer1 As CrystalDecisions.Web.CrystalReportViewer
    8.     Dim crpt As PriceCheckRpt

    This used to work in my other versions.

    The Dim crpt as PriceCheckRpt is what is not recognized.

    There is Crystal report in my project called PriceCheckRpt.

    Anyone have any ideas why this is now not recognized?

    Thanks
    Last edited by indydavid32; Apr 6th, 2004 at 09:13 AM.
    David Wilhelm

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612
    Anyone have any ideas???
    David Wilhelm

  3. #3
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Try to remove and add the report to your project again. Are you using CR bundled or stand alone version?
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612
    I have removed and added the report. I have also created a new report with the updated software. When I try to dim the report on the web page with the CrViewer on it, it still has the same problem.

    I am using Crystal Reports 10 Developer addition. So, when I click on Add new items in my web projects, the Crystal Report shows up inside VB .Net, not in the Crystal 10 software package.
    David Wilhelm

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    Unhappy

    Bump
    David Wilhelm

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    Red face

    For those of you interested, I have found the solution.

    Since my Crystal Report was created in an old version, I have to open the Report as if it was made outside of the .Net environment.
    VB Code:
    1. dim crpt as new ReportDocument()
    2. crpt.load("C:\inetpub\wwwroot\McClureNet\PriceCheckRpt.Rpt")
    Last edited by indydavid32; Apr 6th, 2004 at 09:13 AM.
    David Wilhelm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width