SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Expression to show or hide


Expression to show or hide

Author
Message
mcfarlandparkway
mcfarlandparkway
SSCertifiable
SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)

Group: General Forum Members
Points: 6580 Visits: 861

I want to hide the page footer example - page 1 of 2, 2 of 2 in the report , but when I export to PDF I want to show these.

there is a text box with a notes description and the visibilty of this text box is --
=IIF(Parameters!IsDl.Value = 1, IIF(Globals!RenderFormat.Name <> "EXCEL" AND Globals!PageNumber=Globals!OverallTotalPages, False, True),True)

and there is another text box - and the expression is as follows

=cstr(Globals!PageNumber) + " of " + cstr(Globals!TotalPages)

Both these text boxes are present in the footer


sql Sarah
sql Sarah
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1665 Visits: 609
You have to put an expression on the text box. Go to Text Box properties, Visiblity, click on the fx button to the right of Show or hide based on an expression.
To hide them on everything that is not PDF, use this expression:

=Globals!RenderFormat.Name <> "PDF"


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search