Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacement for report form
Message
 
À
29/10/2002 00:11:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00711206
Message ID:
00716330
Vues:
19
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform