Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sub-report possible in VFP?
Message
From
09/09/2002 11:42:10
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00697277
Message ID:
00698330
Views:
12
>Okay .. here's an untested theory .. but it might work.
>
>Create a local variable in the code just before printing (llFirstPass = .t.)
>
>In the On Exit expression on the Group Footer ... call the following method:
>
>
>FUNCTION ResetPointer
>IF llFirstPass
>  SEEK MyDataGroup && Reset the pointer to the top of this data group
>  llFirstPass = .f.
>ELSE
>  llFirstPass = .t.
>ENDIF
>RETURN
>
>
>I have no idea what this will do to the group header and group footer processing .. but it's the only concept I can think of besides adding each record to the cursor twice.
>
>Good luck ... and I'm curious if this works so let me know.

And llFirstPass would have to be a report local variable, reset to .f. on next outer group? Sounds cool, and might work.

In FPD days I was faking subreports by including a function which would return several lines of text into a stretchable wide field, and the function created chaos if it didn't restore the workarea - but then it didn't mess with record pointer, it used a SQL Select to get what it needed. It worked, to an extent, because of the 255 limit of those days. For longer things like that I rather relied on textmerge.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform