Information générale
Catégorie:
Codage, syntaxe et commandes
PMFJI, but if you want to set up the dataenvironment for a report programmatically, then I *believe* the only (never say "only") way to do it is in code and _then_ run the report. There is a dataenvironment associated with reports. Hmmm. Maybe you could run a function in the DoOnEntry method (?) of the report title band...But, honestly, it seems more straightforward to do it in code before doing the report.
Just my US .02
>I want to add a cursor (maybe a table built from the cursor fields) to the dataenvironment of a report, not a form. Tried getting your code to work but had no luck.
>
>in the command window
>
>select * from testtable into cursor mycursor
>create report myreport from mycursor column
>modi report myreport
>
>** now the report designer is up. is there automatically a dataenvironment associated with myreport? or must i add one? if i have to add one, what is the code?
>
>report5.dataenvironment.addobject("tempcursor", "cursor")
>** "object report5 not found" is the error message
Précédent
Suivant
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