Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What happen with Crystal Report 9
Message
From
06/05/2003 08:52:29
 
 
To
06/05/2003 01:08:33
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Miscellaneous
Thread ID:
00785207
Message ID:
00785303
Views:
19
What happens? Do you get an error message? Does the report just not print? One thing you may look at is the line
oDBT.Location = "C:\EFox\Customer.DBF"
Crystal made some changes in CR9. If you change the line to
oDBT.SetTableLocation("C:\EFox\Customer.DBF", "Customer", "")
>The code below does not work correctly with Crystal report 9 but it worked correctly with Crystal report 8. somebody know why?
>
>LOCAL oCR AS CRAXDRT.Application
>LOCAL oRpt AS CRAXDRT.Report
>LOCAL oDB AS CRAXDRT.Database
>LOCAL ocDBT AS CRAXDRT.DatabaseTables
>LOCAL oDBT AS CRAXDRT.DatabaseTable
>
>oCR = CREATEOBJECT("CrystalRuntime.Application")
>oRpt = oCR.OpenReport("C:\EFox\Direct1.RPT")
>
>* Create the Database object
>oDB = oRpt.Database()
>
>* Get a references to the DatabaseTables collection
>ocDBT = oDB.Tables()
>
>* Get a reference to the DatabaseTable object for table 1
>oDBT = ocDBT.Item(1)
>
>* Set the location
>oDBT.Location = "C:\EFox\Customer.DBF"
>
>oRpt.PrintOut()
>
>The result it’s always a empty report (without none record).
>
>Thank you very much
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform