Reporting Services: how to set extra properties of dataset fields? - visual-studio

I'm creating RDLC reports using the visual studio report designer.
In the Visual Studio Report Designer, when editing a RDLC file, I see that in the expression editor there are several style/formatting properties tied to each field of a dataset, as seen in the screenshot below:
for example: BackgroundColor, FontSize, etc.
My question is... how do I provide values for those properties, so that I can use them in the report?
I'm using a DataTable C# object to provide the data to the report, but how do I set some of those extra properties??

You cannot set these extended field properties but you can read them if they are supported by your data source.
Value and IsMissing properties are defined for all data sources.
Other properties such as Key and ParentUniqueName are supported only by a restricted number of data sources (i.e. SQL Server Analysis Services).

Related

Finding fields in report builder

One of the columns in my Table actually has a value which is picks from a field from dataset and a textbox (for example =Fields!Total.Value/ReportItems!Textbox80.Value). The Total Field comes from a dataset in my report however I am struggling to find the Textbox80 . Is there any way I can search for this Textbox from Report builder UI. I tried seeing in Properties view as well but Could not find a way. I looked at below link also for help but it talks about BIDS which I cant see in Report builder
This seems to be a potential duplicate of How do I find a specific textbox within a SSRS 2008 R2 Report
The answers show that there is no specific way to do this with the report builder UI without selecting each report item and manually checking the properties menu.
The textbox can easily be seen if you are viewing the report in Visual studio (using the properties drop down box at the top of the screen)
The textbox can also be found if you edit the .rdl file in a text editor, which can then allow you to attempt to locate the textbox

Textbox description in RDLC

I'm creating a RDLC report using Visual Studio 2013 and I'm using a lot of TextBox containing formulas.
Is there a way to display some different name for this TextBox instend of just <<Expression>> ? This way is not very clear since all the fields seems the same. I see TextBox have a Description field but it doesn't work for me, it only does if I use Placeholders

How do I hide sections based upon some criteria?

I'm working on a SQL Server Reporting Service report, that will eventually be in my WPF app. There are certain sections of the report which should only be shown, if certain conditions are met. How do I make sections appear or be hidden/collapsed in the Report Viewer? (I'm working in VS 2010.)
It may depend on what you mean by "section". Most report objects (such as text boxes, table rows, etc.) have a property Visibility>Hidden which can be set to a condition, by selecting the <Expression...> option for the property in the Properties window in the Report Designer.

Why use ReportView?

Reporting is pretty new to me. I see that VS provides some Reporting controls that provides a wizard to help creating the report. My question is, if I already have stored procedures that generate the report data, what is the difference between presenting it through a reportview or gridview? Is there obvious advantage that reportview control provides that other grid controls don't?
ReportViewer in local mode (RDLC) has a lot of additional functionality
ReportViewer can do multiple tables, graphs and non-table data
ReportViewer can paginate and print data
ReportViewer has capabilities to export the report into Excel, PDF etc.
You can use ReportViewer controls to display reports generated with Sql Server Reporting Services. So if you wanted to have a report that included charts or graphics, you could create it and host it in SSRS and then include it right in your application.
A grid view can only display data in a grid. The report viewer has the capability to format data in much more sophisticated ways.

What ListBox like control is used in Collections Editor of Visual Studio

I need to create a from which uses the same ListBox as the one from Collection Editor of Visual Studio (The ListBox under the Members label). Please, explain exactly which WinForms control is this and which of its properties are set?
You can see the control I am asking about under the Members: label of every collection editor form in design time of Visual Studio.
Thank you.
Hopefully this can get you started. There's other (probably better...) samples out there, but this is a basic starter which can help you get the concept:
http://msdn.microsoft.com/en-us/library/9zky1t4k%28VS.90%29.aspx
Quote:
This example shows how to create a
control named ContactCollectionEditor
that implements a custom collection
editor. The example shows how to
specify the exact type of the object
that a page developer can add to the
control's collection property when
using a custom collection editor. You
associate a collection editor with a
collection property (or the type of
the property) by applying the
EditorAttribute to the collection
property of the control.

Resources