Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying cross tab data?
Message
From
26/07/2007 11:12:36
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/07/2007 11:06:40
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01243774
Message ID:
01243778
Views:
27
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform