Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One report form for multiple reports
Message
 
 
À
09/01/2009 14:18:32
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01372436
Message ID:
01372438
Vues:
21
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'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.

>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>
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform