Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Gestionnaire de rapports & Rapports
>The idea one of my former colleagues used for similar scenarios is to have form's method to create whole column as a string. In the report you would use something like
>
>iif(vartype('thisform') = 'O', thisform.myConcatenateMethod(), myRegularField)
That is an idea. Could do the same for the field headers as well. Maybe...
>That's just an idea.
>
>If the report is quite simple, you can also put everything for more complex case (many fields) and use Print When condition controlling what to print.
See my response to Sergey.
>>We have this code in a class-level Print button. The report is setup for two columns as that is what the alias normally has. I would like to make the report form dynamic where it can handle 1 to 5 columns, depending on what's in the alias. Development time is a concern, and one developer has suggested just using different reports for each scenario. That goes against my sense of oneness with the world, so is there a non time consuming way to have one report form handle this? The data is all very similar, lookups, codes, descriptions, that sort of thing. Using VFP9.
><snip>
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