Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Reports Won't
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Crystal Reports Won't
Miscellaneous
Thread ID:
00417481
Message ID:
00417481
Views:
38
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
Next
Reply
Map
View

Click here to load this message in the networking platform