Results 1 to 7 of 7

Thread: [RESOLVED] Upgrade from CR8.5 to CR11

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Posts
    107

    Resolved [RESOLVED] Upgrade from CR8.5 to CR11

    Hi, there is an error
    Line 13: Class CRVIEWERLibCtl.CRViewer of control CRViewer1 was not a loaded control class.
    while i upgraded my CR to version 11 in VB 6.0


    i applied - Crystal ActiveX Report Viewer Export Library 11.0
    - Crystal ActiveX Report Viewer Library 11.0
    - Crystal ActiveX Report Viewer Web Report Source Library 11.0
    - Crystal Report ActiveX Designer Library 11.0

    but it doesn't work. Pls help..

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Upgrade from CR8.5 to CR11

    It sounds like you don't have Crystal Reports itself installed.

    You need Crystal Reports installed in order to use the CRViewer control at design time.

  3. #3
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Upgrade from CR8.5 to CR11

    The CRviewer changed from 8.5 to 11. You need to remove the 8.5 CRView Component and add the new CR11 component.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Posts
    107

    Re: Upgrade from CR8.5 to CR11

    First i uninstalled the 8.5 then installed 11 and reassigned components and references. But there is a "compile error: method or data member not found" while i debugging my system. Below is the codes:

    Option Explicit
    Public mRptReport As Report


    Private Sub Form_Load()
    Call FormStartUpPosition(Me, Me.height, Me.Width)
    Screen.MousePointer = vbHourglass
    CRViewer1.ReportSource = mRptReport *this is the effected line*
    CRViewer1.PrintReport
    CRViewer1.ViewReport
    Screen.MousePointer = vbDefault
    End Sub

  5. #5
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Upgrade from CR8.5 to CR11

    When you removed the 8.5 component did you remove the CRViewier component on the form? The default name when you inset the CR11 Viewer is CrystalReportsViewer1 in CR8.5 it wasx CRViewer1
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Posts
    107

    Re: Upgrade from CR8.5 to CR11

    Thanks Gary. but i have this run time error: Method 'PrintReport' of object 'ICrystalReportViewer11' Failed.
    Did i missed up something in my coding?

    Private Sub Form_Load()
    Call FormStartUpPosition(Me, Me.height, Me.Width)
    Screen.MousePointer = vbHourglass
    CrystalActiveXReportViewer1.ReportSource = mRptReport
    CrystalActiveXReportViewer1.PrintReport "effected line"
    CrystalActiveXReportViewer1.ViewReport
    Screen.MousePointer = vbDefault
    End Sub

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Posts
    107

    Re: Upgrade from CR8.5 to CR11

    I got error while i run my system to view and print reports "Run-time error: Basic syntax is not supported in group or record selection formula."

    Public Sub ShowMonthlyReportCurOrderSynfab(ByVal blnPreview As Boolean, ByVal sID As String)
    Dim CurOrderSynfabReport As Report
    Dim Db As Database
    Dim strTitle As String

    Set CurOrderSynfabReport = New ICRCurOrderSynfab
    Set Db = CurOrderSynfabReport.Database
    CurOrderSynfabReport.RecordSelectionFormula = "{tbl_Posting.ID}=" & sID & " " effected line

    Set frmCrystalViewer.mRptReport = CurOrderSynfabReport
    frmCrystalViewer.Caption = strTitle & "Outstanding Order Report for Synfab Marketing"
    frmCrystalViewer.Show 1
    CurOrderSynfabReport.Export True

    End Sub



    Pls help on programming newbies. Thanks.

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