>I am designing a report, and need to display cross-tabbed data. The data has already been pivoted. My task is to display this data that has an unknown number of columns at design time.
>
>Is there a solution for this problem?
>
>One thought I had was to build up HTML from the pivoted data, but I'm not sure if VFP report designer can display html.
Aaron,
One solution I implemented before was:
-Create the report with the max columns possible
-Have a print when clause like:
nColumns >= 4 && for fourth column
-Alter pivoted data cursor to add dummy columns
-Set nColumns to actual value
You can also hack a copy of frx at runtime and remove the unused ones and report using the copy.
PS: If excel is an option, it knows how to pivot and print in side-by-side pages (ugly for me but is an option).
HTML could use its own printing (IE control).
Cetin