Showing posts with label suppress. Show all posts
Showing posts with label suppress. Show all posts

Sunday, February 26, 2012

Hiding the Title Output ?

is there a way to suppress the output of the title of each column ?

i.e.

if that query would normally return

Name | Age | Rank
John 12 Lt
Paul 11 Cpt
George 10 Sgt
Ringo 6 Prt

Can i get it to return just:

John 12 Lt
Paul 11 Cpt
George 10 Sgt
Ringo 6 Prtwhere ru runing this script? in QA?|||yes you can
select name as ' ' ,age as ' ',rank as ' ' from table_name

Originally posted by ontheDB
is there a way to suppress the output of the title of each column ?

i.e.

if that query would normally return

Name | Age | Rank
John 12 Lt
Paul 11 Cpt
George 10 Sgt
Ringo 6 Prt

Can i get it to return just:

John 12 Lt
Paul 11 Cpt
George 10 Sgt
Ringo 6 Prt|||actually the proposed query will return this:

| | |
John 12 Lt
Paul 11 Cpt
George 10 Sgt
Ringo 6 Prt

this means that the heading will not be suppressed, but rather renamed to empty strings.

in order to suppress the headings uncheck Print Column Headers in Tools/Options/Results of your query analyzer.|||Originally posted by ms_sql_dba
actually the proposed query will return this:

| | |
John 12 Lt
Paul 11 Cpt
George 10 Sgt
Ringo 6 Prt

this means that the heading will not be suppressed, but rather renamed to empty strings.

in order to suppress the headings uncheck Print Column Headers in Tools/Options/Results of your query analyzer.

This question is related to the reply, is it possible to "uncheck Print Column Headers" with actually going to Tools>Options>Results? Is there is a script that would do that same? For example in Oracle you can say:

Set Headings off

Is this possible in Query Analyzer 2000?

Hiding the Find option in REPORT Manager - Viewing report

Hi,
I want to suppress the "Find" option in Report Manager when I am viewing the report. Is it possible?
How can we do this?

Thanks in advance.You can do this by creating a custom CSS for the viewer toolbar, modifying the RSReportServer.config file to use this CSS, and setting the find section of the toolbar to display:none in the CSS file.

I am planning on writing a blog entry for more details about this.

Friday, February 24, 2012

hiding header row in a group

I have a table with a group. I have one row of the group that is the header for the detail section. How can I suppress the row header in the group if there is no data in the detail section for a group value? I was thinking something along the line of setting the visibilty of the row header to an expression based on the existence of data in the detail, but don't know how to go about this.

Thanks.

Hi steve,

You can try using the Count function for any fields.

The expression in the HIdden property of the table header would be
=IIF(Count(Fields![WhateverField]) = 0, True, False)

I tried it out and it seemed to work on my test.
Hope this works !

BErnard Ong

|||

To check for the existence of records in a given group, you can use count function with scope parameter like this in the visibility expression of the group header row:

=IIf(Count(Fields!YourField.Value, "Group1")=0, true, false)

Where Group1 is the name of the group that you have in your table.

Shyam

Hiding elements for print and export

Is it possible to suppress the output of certain report elements when the report is printed or exported? I want a particular image element that has a hyperlink to be visible when the report is viewed within RS's ReportViewer, but don't want it to show up on the printed or exported file. I figure, if this is even possible, the most obvious methods would be either:

1. Put the element in the page header or footer, then set up the page header or footer to not show up on the printed or exported report.

2. Put the element anywhere on the report, and set it to hidden when the report is printed or exported.

Are either of these possible? If not, is there another way to accomplish this?

Thanks,
DonThere is no way to do this. You can however write your own rendering extension in which you have full control over how to render the report.

Sunday, February 19, 2012

Hiding a zero value

How can I hide or suppress the 0-values (zero) in a report?

Use the expression =iif(Fields!FIELDNAME.Value = 0, True, False) at the Visibility expression field in the properties of the textbox.

Kind regards!

Marius

|||

Try this. . .

=Iif(Fields!FIELDNAME.Value = 0, "", Fields!FIELDNAME.Value)

|||

Both options will work.

Thx a lot!

|||You're welcome!|||

Add this function to the custom code field on de report properties:

Code Snippet

Function NoZero(Number as Double)
If Number = 0 Then
Return Nothing
Else
Return Number
End If
End Function

Now you can use this function to suppres zeros in your expression like this:

Code Snippet

=Code.NoZero(Fields!YourField.Value)

Hiding a zero value

How can I hide or suppress the 0-values (zero) in a report?

Use the expression =iif(Fields!FIELDNAME.Value = 0, True, False) at the Visibility expression field in the properties of the textbox.

Kind regards!

Marius

|||

Try this. . .

=Iif(Fields!FIELDNAME.Value = 0, "", Fields!FIELDNAME.Value)

|||

Both options will work.

Thx a lot!

|||You're welcome!|||

Add this function to the custom code field on de report properties:

Code Snippet

Function NoZero(Number as Double)
If Number = 0 Then
Return Nothing
Else
Return Number
End If
End Function

Now you can use this function to suppres zeros in your expression like this:

Code Snippet

=Code.NoZero(Fields!YourField.Value)

Hiding a zero value

How can I hide or suppress the 0-values (zero) in a report?

Use the expression =iif(Fields!FIELDNAME.Value = 0, True, False) at the Visibility expression field in the properties of the textbox.

Kind regards!

Marius

|||

Try this. . .

=Iif(Fields!FIELDNAME.Value = 0, "", Fields!FIELDNAME.Value)

|||

Both options will work.

Thx a lot!

|||You're welcome!|||

Add this function to the custom code field on de report properties:

Code Snippet

Function NoZero(Number as Double)
If Number = 0 Then
Return Nothing
Else
Return Number
End If
End Function

Now you can use this function to suppres zeros in your expression like this:

Code Snippet

=Code.NoZero(Fields!YourField.Value)

Hiding a subreport - How to suppress the blank line ?

Hi, I have a main report with several subreports in a list. If I hide a subreport that contains no data by using the "visibility" attribute, there s always a blank line left in the list. Is there any way to suppress that blank line?

Minimize the size(width and height) of the sub report to the maximum extent.

sincerely,

Amde

|||

Hi,

I have the same problem. I am using a sub report with a table. Even, if I reduce the height to maximum extent, it still adds up and creates blank space. Is there any other way?

Can I suppress a single cell of the table if it is blank?

Thanks in advance !!!

|||Thanks, I tried that before, but that doesn′t solve my problem.
Even when I minimize the height of the line in the main report or the sub report itself, there′s still a noticable blank line. In my case, I′ve got like 6 or more sub reports in that table and even minimized there′s too much blank space if more than one sub reports are hidden.
Isn′t there any way to completley hide the line, where the sub report would have been?
|||Common guys, any "Pro" out there has got to know how to do that?!
Or is it just impossible?
I postet on several forums and a lot of people have this problem, too, but noone seems to have a solution for this.
|||

hi nic

Create an Empty Row in yout table.

Embed the sub-report in this table row.

Hide the table row when theres no data in your subreport.

And it will hide the extra space

|||

Hi,

Right click on the field and go to expression.

In expression type the below

=IIF(Field!FieldName="",true,false)

Regards,

Prashant

|||

What is the actual expression to "Hide the table row when theres no data in your subreport" ?

Thanks,

Pete

Hiding a group also hides all nested groups

I have several nested sub-total groups. Depending on a report parameter, I may want to suppress one of the sub-totals. This one group is not the lowest group in the hierarchy and, when I hide it, all the groups "below" it become hidden too. I only want the one group to "disappear", not any others. Is there a way to accomplish this other than creating two versions of the report?

Instead of giving visibility condition to the group (group row), try using the visibility condition on all textboxes (or any other elements) in that group individually. This way, you are hiding only those individual items instead of the group as a whole.

Shyam