hi to all,
I am working on report 113 and I have to do next:
I need to hide two rows, one of them is Profit and other is Profit %.
on Request Form I need a checkbox (done),
when I click on it, and then, click on Preview, those two rows should be hidden.
please, any clue how I should do that
0
Answers
you can use the CurrReport.Showoutput -Function.
In the section you want to hide you write:
CurrReport.Showoutput(yourRequestform-Variable);
Greets
Make the heading Lables text boxes and your profit and % blank when zero.
Put in the following code
Hope this helps
Albert
I do not think that you understod my problem.
I just want to hide two rows depending on checkbox on my Request Form:
if the checkbox checked than show me whole report without 2 rows Profit and Profit %
or, if not checked, show me complete report with those 2 rows
on the Customer Header (5) do the following
Remove Labels Profit and Profit %
Add 2 TextBox with sourceexpr ProfitTxt and ProfitPctTxt
Define as Text variables ProfitTxt and ProfitPctTxt
with the code I gave you earlier
Should sort you out.
first I wanna thank you for your help, but I solved my problem in the other way:
I made double sections in my report, and I erased 2 rows in them. than in the sections I don't wanna see rows I type this:
OnPreSection()
CurrReport.SHOWOUTPUT(SourceExpr);
and in the sections I do wanna see rows i type this:
OnPreSection()
CurrReport.SHOWOUTPUT(NOT SourceExpr);
simple as that...