Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Report x VFP7
Message
From
26/07/2002 15:46:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Crystal Report x VFP7
Miscellaneous
Thread ID:
00683118
Message ID:
00683118
Views:
64
i'm trying to use de Crystal Report to print some reports in VFP, but i need to change the server, database and table name at runtime.

*** This Code create a Crystal Report Engine object

loCrystal = CREATEOBJECT('Crystal.CRPE.Application')
loReport = loCrystal.OpenReport(lcReport,1)

****I try to use. No work and i need help
loCrystal.LogOnServer("pdsodbc", "MSSDE", "IfmGest001002", "sa", "" )
loDatabase.Tables(1).SetLogOnInfo "pdssql.dll", "MSSDE", "IfmGest001002","sa")

loReport.PrintOut(.T.,1,.F.,1,1)

How can i do it?
Please Help
Next
Reply
Map
View

Click here to load this message in the networking platform