General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
VFPOLEDB.dll and Crystal Reports 8.5 RDC
Has anyone used the new VFP OLE DB driver with Crystal Reports 8.5 RDC yet? I cannot get the syntax right.
goCrxRp = Createobject("CrystalRuntime.Application")
goRp = goCrxRp.OpenReport(c:\TestCrystal\Reports\Test.rpt)
oConn = CREATEOBJECT("ADODB.Connection")
oConn.Open("Provider=vfpoledb.1;Data Source=c:\TestCrystal\data")
oRS = CREATEOBJECT("ADODB.Recordset")
lcTestData = "Select * from Test"
oRS = oConn.Execute(lcTestData)
goRp.Database.SetDataSource(oRS)
TIA,
Pam
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only