Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with the Dataenvironment
Message
De
20/05/1998 17:37:44
Murray Mcintosh
Mammography Reporting System, Inc.
Seattle, Washington, États-Unis
 
 
À
20/05/1998 16:24:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00100560
Message ID:
00100658
Vues:
33
>Hi Cetin, thank you for your reply
>
>My problem is that even if I leave the DE empty I don´t find the fields of the files I open with my program. When I tried to put any Field Control on the report I have to type the field expression. I give the users of my programs the possibilty of changing the reports, with this problem I have to tell them what fields are available to add to the reports!
>
>Thank for any help

One thing you can do is open the report (use somereport.frx) before the user modifies it. Look for a data environment and if it is not found insert it into the frx (or lbx) file. To see what to insert just add a table to a report data environment in the report designer then "use" the frx file and look for objtype = 25 (data environment) and objtype = 26 (cursor). You also may have to update the CursorSource part of the expr field for the cursor if the path has been changed (such as if you distribute the report with the DE added but the user installs to some other directory).

One rather annoying thing about this however that occurs in the Runtime VFP Environment (but not the Development VFP Environment) is that your users will have to manually open the DE Window before the field list in the expression builder dialog will be populated. There may be a programmatic workaround for this, but I don't know of any (if anyone has one I'd be interested in knowing what it was).

See the file 50frx.dbf in the "Filespec" directory under wherever you installed vfp for more details about frx files.

Murray
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform