|
-
Mar 8th, 2007, 04:25 AM
#1
Thread Starter
Lively Member
[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..
-
Mar 8th, 2007, 09:54 AM
#2
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.
-
Mar 8th, 2007, 11:19 AM
#3
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
-
Mar 8th, 2007, 08:43 PM
#4
Thread Starter
Lively Member
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
-
Mar 9th, 2007, 08:43 AM
#5
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
-
Mar 11th, 2007, 10:40 PM
#6
Thread Starter
Lively Member
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
-
Mar 12th, 2007, 12:07 AM
#7
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|