Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacement for report form
Message
 
To
29/10/2002 00:11:42
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00711206
Message ID:
00716330
Views:
17
The following is assuming that you are using the VFPOLEDB provider (from VFP7) and the ADO driver, in the data access configuration of the ReportManager Designer.

In the designer you add a connection with the name: VFPSAMPLES
When you configure this connection, the connection string will be something like this: Provider=VFPOLEDB.1;Data Source=c:\vfp\samples\data\testdata.dbc

To configure this at runtime:
*-- set the datasource to your current path and name
cconnect = "Provider=VFPOLEDB.1;Data Source=c:\mydata\testdata.dbc"
thisform.ReportManX.Preview = .T.
thisform.ReportManX.setDatabaseConnectionString("VFPSAMPLES",cconnect)
*-- run the report
thisform.ReportManX.execute()
If you want to see the current value of the connection string:
cconnect = thisform.ReportManX.getDatabaseConnectionString("VFPSAMPLES")
Wait Window cconnect
>here i am bodering you again with Report Manager.
>Do you know how to pass the string connection to the OCX at runtime?

Just an opinion... Not a fact.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform