|
-
Oct 16th, 2008, 06:59 AM
#1
Thread Starter
New Member
Connection error with Crystal Report XI, VB6 and Sybase ASE15
Hello !
I have an error #4002 when I want to launch a report in VB6 with the ActiveX Crystal Report Viewer.
I use Sybase ASE 15 with an ODBC link and the reports run stored procedures.
This error seems to be an authentification error, but I don't know what parameters are missing or wrong...
My reports works well in the report designer.
The reports connected to a text file or an ADO recordset work in VB6.
The Verify Database works in design mode in VB6.
The problem is the same with tables, stored procedures, SQL and with or without parameters...
I tried to connect the report to a DataEnvironnment but I get the same error.
The problem appears when I use the Crystal Wizard to create a form automatically AND when I create objects directly in code like :
Code:
Dim crapp As CRAXDRT.Application
Dim oReport As CRAXDRT.Report
Set crapp = New CRAXDRT.Application
Set oReport = crapp.OpenReport("C:\myreport.rpt")
CRViewer.ReportSource = oReport
CRViewer.viewReport
Please help !
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
|