Information générale
Catégorie:
Gestionnaire de rapports & Rapports
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement