Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating complex reports the EASY / flexible way
Message
From
08/04/1999 16:07:40
David Abraham
David Abraham & Associates, Inc.
New York City, New York, United States
 
 
To
25/03/1999 19:47:37
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00201440
Message ID:
00206647
Views:
14
Hi Cindy,

Better late than never getting back to you.

This is pretty much EXACTLY the approach I will be using for any report I have to devote thought to. From my form's command button's click or mousedown event, a DO [prgname] WITH [condition-stuff] where the [prgname] will create a single non-normalized cursor that will drive the report, and some variable settings for special purposes, and then issues the REPORT FORM [rptname] PREVIEW.

Thanks again.

David

>David,
>
>A little more detail on what Ed said:
>
>Create an SQL cursor (very non-normalized) of everything you want on your report. Each record would have customer name, address, order number, order date, item details. In other words, lots of repeats on name, each record has a different detial. Order/group by customer, order, item.
>
>The alternative, trying to step through 2 or more tables with a relation, will only give you debugging headaches if the wrong table is selected.
>
>I select a couple of records into my cursor and save as D:\ReportTestData so I don't have to keep re-running the SQL while I work with the formatting.
>
>Also, I do not use the filename prefix in the expression for my report controls. I do a lot of out-of-context reports, and it's easy to run the report form using a subset of the data.
>
>I have places in my reports where I can pass in a footnote or whatever via a memory variable. This might be used on an invoice for "This months special is..." These values are not in my cursor.
>
>If you need to do mass changes to report controls you can USE the frx and REPLACE... (see the April Advisor)
>
>I guess this is about $0.03.
>
><snip>
>>I imagine that many of you have found yourselves at this (multi-)fork in the road and have dropped back to consider which of many ways to walk, that you have settled on as the best, most flexible way to handle report creation. I invite you to share your experience with me. <vbg>
>>
>>TIA,
>>
>>David
Previous
Reply
Map
View

Click here to load this message in the networking platform