You will have to create two sections, one with the field you want to hide and one without the field. You can use CurrReport.SHOWOUTPUT on both sections to hide or show the section (show one section and hide the other one).
I think you can do it without 2 sections:
- Declare a global variable (Text2Hide Code20)
- Place a TextBox where you want it, with SourceExpression Text2Hide
- In the OnPreSection trigger you can write forexample
IF CurrReport.PREVIEW THEN
Text2Show := ''
ELSE
Text2Show := "Document No.";
Comments
You can use:
CurrForm.MyTextBoxName.VISIBLE := FALSE;
Regards
Claus
http://www.AcumenConsulting.co.nz
because this
CurrReport.MyTextBoxName.VISIBLE := FALSE;
Not run
Regards
Claus
http://www.AcumenConsulting.co.nz
- Declare a global variable (Text2Hide Code20)
- Place a TextBox where you want it, with SourceExpression Text2Hide
- In the OnPreSection trigger you can write forexample