Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding cursor to report dataenvironment
Message
De
21/04/2006 21:17:15
 
 
À
21/04/2006 21:11:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01115643
Message ID:
01115646
Vues:
17
For example:

Create your report by issuing create report from the command window.
When the report is open in the designer, click on View on the menu and select Data Environment.
Right click on the data environment window and select Add...

If the cursor does not exist because it is created on the fly during runtime, then for design purposes, create the cursor to use its fields in design mode and temporarily create it as a table on the hard drive while designing the report. Delete it when finished designing the report. Remove the table from the data environment because you don't want it opened automatically and you don't want the report to look for it everytime the report is modified. Also turn off autoOpenTables and AutoCloseTables in the dataenvironment properties. I typically do this while designing the report and then when the report is run during runtime, I create the cursor on the fly and make sure it is selected before I issue the report form command. There are other methods in VFP9 but start with the simplest. For instance, you could issue the select statement in the init of the dataenvironment and then set This.InitialSelectedAlias to the name of the cursor...



>Hi all,
>
>I'm rather new to VFP9, and I find the Report Designer quite different from the
>previous versions, with many added features
>
>My first question is, could someone tell me how one adds a cursor to the dataenvironment of a report, so that I could drag and drop fields?
>
>Besides, I haven't learnt about Report Listener, and other new features yet. Is there any site I can visit, which gives freshers a comprehensive, and easy idea of things?
>
>Thanks!
>
>Steve.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform