Hi Everyone,
I have read some forum with regards to Crystal Report and Visual Foxpro and can't find solution with my problem.
Before I'm using VF6 I can't use this code below. When we migrate into VF7 the code is already working. I add the crystal report activex control into my form.
THISFORM.Olecontrol1.DataFiles(0) = "C:\s_files\sample.mdb"
THISFORM.Olecontrol1.ReportFileName= "C:\s_files\report2.rpt"
THISFORM.Olecontrol1.WindowTitle = "Sample Report"
THISFORM.Olecontrol1.Action = 1
Now my problem is we also migrated into SQL200 database and I'm having this kind of problem.
THISFORM.Olecontrol1.ReportFileName= "C:\s_files\report2.rpt"
THISFORM.Olecontrol1.WindowTitle = "Sample Report"
THISFORM.Olecontrol1.Action = 1
Program Error:
Ole IDispatch exception code 0 from CrystalReport: Cannot
Open SQL Server...
Thanks
Triplex
I have read some forum with regards to Crystal Report and Visual Foxpro and can't find solution with my problem.
Before I'm using VF6 I can't use this code below. When we migrate into VF7 the code is already working. I add the crystal report activex control into my form.
THISFORM.Olecontrol1.DataFiles(0) = "C:\s_files\sample.mdb"
THISFORM.Olecontrol1.ReportFileName= "C:\s_files\report2.rpt"
THISFORM.Olecontrol1.WindowTitle = "Sample Report"
THISFORM.Olecontrol1.Action = 1
Now my problem is we also migrated into SQL200 database and I'm having this kind of problem.
THISFORM.Olecontrol1.ReportFileName= "C:\s_files\report2.rpt"
THISFORM.Olecontrol1.WindowTitle = "Sample Report"
THISFORM.Olecontrol1.Action = 1
Program Error:
Ole IDispatch exception code 0 from CrystalReport: Cannot
Open SQL Server...
Thanks
Triplex