Error on running Crystal Report Viewer-VBForums
Results 1 to 2 of 2

Thread: Error on running Crystal Report Viewer

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2010
    Location
    UK
    Posts
    269

    Error on running Crystal Report Viewer

    I have tried to create a report using integrated Crystal Reports. The report for test purposes is very simple and it connects to one table within a dataset and has three fields from that table in the Details line. And that is how simple the report is.

    I then create a form, insert a Crystal Reports Viewer, connect the report, that is now in my project, to the viewer. And, I get the following error. Can someone tell what is wrong here.

    Crystal Reports is no

    Thanks

    _________________________________________________________

    Error 3 Type 'CrystalDecisions.Windows.Forms.CrystalReportViewer' is not defined. C:\CAL\Application\frmRptTest.Designer.vb 25 39 TESTPROJECT
    Error 4 Type 'CrystalDecisions.Windows.Forms.CrystalReportViewer' is not defined. C:\CAL\Application\frmRptTest.Designer.vb 52 47 TESTPROJECT
    Error 5 Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined. C:\CAL\Application\rptTest.vb 57 44 TESTPROJECT
    Error 6 Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined. C:\CAL\Application\rptTest.vb 65 44 TESTPROJECT
    Error 7 Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined. C:\CAL\Application\rptTest.vb 73 44 TESTPROJECT
    Error 8 Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined. C:\CAL\Application\rptTest.vb 81 44 TESTPROJECT
    Error 9 Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined. C:\CAL\Application\rptTest.vb 89 44 TESTPROJECT
    Error 10 Type 'CrystalDecisions.Shared.ExportOptions' is not defined. C:\CAL\Application\rptTest.vb 96 48 TESTPROJECT
    Error 11 Class 'CachedrptTest' must implement 'Function CreateReport() As CrystalReports.Engine.ReportDocument' for interface 'CrystalDecisions.ReportSource.ICachedReport'. C:\CAL\Application\rptTest.vb 99 16 TESTPROJECT
    Error 12 Class 'CachedrptTest' must implement 'Function GetCustomizedCacheKey(request As [Shared].RequestContext) As String' for interface 'CrystalDecisions.ReportSource.ICachedReport'. C:\CAL\Application\rptTest.vb 99 16 TESTPROJECT
    Error 13 Class 'CachedrptTest' must implement 'Property CacheTimeOut As System.TimeSpan' for interface 'CrystalDecisions.ReportSource.ICachedReport'. Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers. C:\CAL\Application\rptTest.vb 99 16 TESTPROJECT
    Error 14 Class 'CachedrptTest' must implement 'Property IsCacheable As Boolean' for interface 'CrystalDecisions.ReportSource.ICachedReport'. Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers. C:\CAL\Application\rptTest.vb 99 16 TESTPROJECT
    Error 15 Class 'CachedrptTest' must implement 'Property ShareDBLogonInfo As Boolean' for interface 'CrystalDecisions.ReportSource.ICachedReport'. Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers. C:\CAL\Application\rptTest.vb 99 16 TESTPROJECT
    Error 16 Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined. C:\CAL\Application\rptTest.vb 107 69 TESTPROJECT
    Error 17 Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined. C:\CAL\Application\rptTest.vb 118 74 TESTPROJECT
    Error 18 Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined. C:\CAL\Application\rptTest.vb 129 78 TESTPROJECT
    Error 19 'CreateReport' cannot expose type 'CrystalDecisions.CrystalReports.Engine.ReportDocument' outside the project through class 'CachedrptTest'. C:\CAL\Application\rptTest.vb 138 51 TESTPROJECT
    Error 20 Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined. C:\CAL\Application\rptTest.vb 138 116 TESTPROJECT
    Error 21 Value of type 'CAL.rptTest' cannot be converted to 'CAL.CrystalDecisions.CrystalReports.Engine.ReportDocument'. C:\CAL\Application\rptTest.vb 141 16 TESTPROJECT
    Error 22 Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined. C:\CAL\Application\rptTest.vb 144 109 TESTPROJECT
    -----------------------------------------------------------------------

    And here is my code in the Report vb.designer

    HTML Code:
        'Required by the Windows Form Designer
        Private components As System.ComponentModel.IContainer
    
        'NOTE: The following procedure is required by the Windows Form Designer
        'It can be modified using the Windows Form Designer.  
        'Do not modify it using the code editor.
        <System.Diagnostics.DebuggerStepThrough()> _
        Private Sub InitializeComponent()
            Me.CrystalReportViewer1 = New CrystalDecisions.Windows.Forms.CrystalReportViewer()
            Me.rptTest1 = New CAL.rptTest()
            Me.SuspendLayout()
            '
            'CrystalReportViewer1
            '
            Me.CrystalReportViewer1.ActiveViewIndex = 0
            Me.CrystalReportViewer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
            Me.CrystalReportViewer1.Cursor = System.Windows.Forms.Cursors.Default
            Me.CrystalReportViewer1.Dock = System.Windows.Forms.DockStyle.Fill
            Me.CrystalReportViewer1.Location = New System.Drawing.Point(0, 0)
            Me.CrystalReportViewer1.Name = "CrystalReportViewer1"
            Me.CrystalReportViewer1.ReportSource = Me.rptTest1
            Me.CrystalReportViewer1.Size = New System.Drawing.Size(753, 450)
            Me.CrystalReportViewer1.TabIndex = 0
            '
            'frmRptTest
            '
            Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
            Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
            Me.ClientSize = New System.Drawing.Size(753, 450)
            Me.Controls.Add(Me.CrystalReportViewer1)
            Me.Name = "frmRptTest"
            Me.Text = "frmRptTest"
            Me.ResumeLayout(False)
    
        End Sub
        Friend WithEvents CrystalReportViewer1 As CrystalDecisions.Windows.Forms.CrystalReportViewer
        Friend WithEvents rptTest1 As CAL.rptTest
    End Class
    One day I found VB.
    Now I live in the state of Confusion.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2010
    Location
    UK
    Posts
    269

    Re: Error on running Crystal Report Viewer

    This is the error list I get when running the report:


    Error 3 Type 'CrystalDecisions.Windows.Forms.CrystalReportViewer' is not defined.
    Error 4 Type 'CrystalDecisions.Windows.Forms.CrystalReportViewer' is not defined.
    Error 5 Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined.
    Error 6 Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined.
    Error 7 Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined.
    Error 8 Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined.
    Error 9 Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined.
    Error 10 Type 'CrystalDecisions.Shared.ExportOptions' is not defined.
    Error 11 Class 'CachedrptTest' must implement 'Function CreateReport() As CrystalReports.Engine.ReportDocument' for interface 'CrystalDecisions.ReportSource.ICachedReport'.
    Error 12 Class 'CachedrptTest' must implement 'Function GetCustomizedCacheKey(request As [Shared].RequestContext) As String' for interface 'CrystalDecisions.ReportSource.ICachedReport'.
    Error 13 Class 'CachedrptTest' must implement 'Property CacheTimeOut As System.TimeSpan' for interface 'CrystalDecisions.ReportSource.ICachedReport'. Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers.
    Error 14 Class 'CachedrptTest' must implement 'Property IsCacheable As Boolean' for interface 'CrystalDecisions.ReportSource.ICachedReport'. Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers.
    Error 15 Class 'CachedrptTest' must implement 'Property ShareDBLogonInfo As Boolean' for interface 'CrystalDecisions.ReportSource.ICachedReport'. Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers.
    Error 16 Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined.
    Error 17 Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined.
    Error 18 Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined.
    Error 19 'CreateReport' cannot expose type 'CrystalDecisions.CrystalReports.Engine.ReportDocument' outside the project through class 'CachedrptTest'.
    Error 20 Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined.
    Error 21 Value of type 'CAL.rptTest' cannot be converted to 'CAL.CrystalDecisions.CrystalReports.Engine.ReportDocument'.
    Error 22 Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined.

    Anybody got any idea what is going wrong here?
    One day I found VB.
    Now I live in the state of Confusion.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.