Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Reports & Report designer
>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>
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only