Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upgrade from crystal reports 7.0 to 8.5

Status
Not open for further replies.

Smart1234

Programmer
Apr 17, 2003
1
IN
Hi everybody
i have got reports created in Crystal reports 7.0. I want to View this report in VB using the RDC. I am Receiving the message "Server not Open". I am using the following code. Can anyone please tell me what is the solution. My reports are created in Crystal Reports 7.0 and now i have Crystal Reports 8.5 installed on my machine

i am stuck and i urgently need some solutions

Thanks and Regards
Smart1234


Dim CRXApplication As CRAXDRT.Application
Dim CRXReport As CRAXDRT.Report

Private Sub Form_Load()
Dim REPFILE As String, strQuery As String
Dim CON As New ADODB.Connection
Screen.MousePointer = vbHourglass

Set CRXApplication = CreateObject("CrystalRuntime.Application")
REPFILE = App.Path & "\Reports\SH_RM_LEDGER.rpt"
Set CRXReport = CRXApplication.OpenReport(REPFILE, 1)
CRViewer1.ReportSource = CRXReport

CRViewer1.ViewReport
Screen.MousePointer = vbDefault

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top