PDA

View Full Version : VPE optionally suppress body section



Richard Hogg
19-Jan-2005, 09:28 PM
Hi All,

I have a VPE report with subtotals. The user can select to print a Detailed
or Summary report. If the user selects Detailed I want to print the "Body"
section otherwise if the user selects Summary I don't want to print the
"Body" just the subtotal section without leaving any blank space where the
body would have printed (i.e. condense the report).

Any ideas welcome.

TIA
Richard

Peter.Tawse
19-Jan-2005, 10:12 PM
Hi Richard

Done this recently on some VERY complex reports

Capture the "Detailed or Summary" selection to a property
then use the value of that property to create the alternative
Body/Summary sections where appropriate within your Report

So your Body section will have (Optionally) it's normal output
or (Otherwise) will build the Sub-Totaled details for the Summary
section, which will of course also have two sections (I think - depending
upon the options you want to appear here

If this is not clear, ring me and I'll go into further detail

Regards
Peter Tawse

Ph: 03 9563 9100


>I have a VPE report with subtotals. The user can select to print a Detailed
>or Summary report. If the user selects Detailed I want to print the "Body"
>section otherwise if the user selects Summary I don't want to print the
>"Body" just the subtotal section without leaving any blank space where the
>body would have printed (i.e. condense the report).
>
>Any ideas welcome.
>
>TIA
>Richard
>

Regards

Peter Tawse
Microbase Software
Melbourne, Australia
Ph: +61 3 9563-9100
Fax: +61 3 9563-9477
ptawse@internode.on.net

Tom Aravich
19-Jan-2005, 10:19 PM
Richard:

This can also be done by:

1) Setting the body height to 0.

2) "Set pbOverrideFormatting TO TRUE"

3) When printing the body "set piSectionHeight(SZBODY)) TO 50"



Tom Aravich

"Richard Hogg" <richard@barcomp.com.au> wrote in message
news:Lz$1xep$EHA.612@dacmail.dataaccess.com...
> Hi All,
>
> I have a VPE report with subtotals. The user can select to print a
> Detailed
> or Summary report. If the user selects Detailed I want to print the
> "Body"
> section otherwise if the user selects Summary I don't want to print the
> "Body" just the subtotal section without leaving any blank space where the
> body would have printed (i.e. condense the report).
>
> Any ideas welcome.
>
> TIA
> Richard
>
>

starzen
20-Jan-2005, 07:57 PM
Richard

the best way to do this is to set the pbOverrideFormatting property of the
body section to true which will allow non fixed height body sections.

Then simply return from dooutputsection without printing anything

like this

Set pbOverrideFormatting to True

Procedure DoOutputSection

If (not(pbPrintDetail(Self)) Procedure_Return

....
End_Procedure


--
Michael Salzlechner
StarZen Technologies, Inc
Visual DataFlex Controls, Tools and consulting
http://www.starzen.com