Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One report form for multiple reports
Message
 
 
To
09/01/2009 14:18:32
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01372436
Message ID:
01372438
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform