I've used the code that Walter posted about how to print a Crystal Report from FoxPro with minon mods and I can't seem to get the database set. Here is my code.
thissource="c:\mydata\mydata.xyz"
CRreportname="Myreport"
oCRreportEngine=CREATEOBJECT("CrystalRuntime.application")
oCRreport=oCRreportEngine.openreport(CRreportname)
oCRreport.database.tables.item(1).location=(thissource)
oCRreport.opensubreport('rptid1')
oCRreport.database.tables.item(1).location=(thissource)
oCRreport.printout()
I get an error indicating that the data does not exist.
If I open the report the data shows up under the location tree but the report indicates it still looking for the old data. WHAT AM I MISSING? Please
Jeff
It's Time to get a gun.
That's what I've been thinkin.
I think I can afford one, If I do a little less Drinkin.www.TrueGeeks.com