View Single Post
  #19 (permalink)  
Old June 7th, 2006, 11:56 PM
Prashu Prashu is offline
Authorized User
Join Date: May 2006
Location: Chennai, TN, India.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Prashu

I have a VB6.0 application that calls reports developed in CR4.6. my new requirement is to get all these reports to CR10 and view from VB6.0. I just opened the rpt files saved them in CR10 and tried to view it using a simple code below

    Private Appl As New CRAXDRT.Application
    Private Report As New CRAXDRT.Report
    Set Report = Appl.OpenReport("C:\Documents and Settings\prashanth_d01\Desktop\project1\csisbcsa.r pt")

Report.Application.LogOnServer "P2SODBC.DLL", "", , "MN06U", "GANESH"

        With CrystalActiveXReportViewer1
          .ReportSource = Report
        End With

This one returns me the below error
"IM006:[microsoft][odbc driver manager] driver's sqlsetconnectattr failed"
However evevrything goes fine if i develop a new report on CR10 and run the above code. It cribs only when i try to save reports developed in 4.6 to CR10 and then try to view it.
Crystal reports gurus plz help!!

Reply With Quote