Normally in a Windows Form project, you have multiple .rdlc template files. You can use a single ReportViewer control to dynamically bind the report file to multiple .rdlc files dynamically. Please look at the following sample: … ReportParameter rp; this.reportViewer1.LocalReport.DataSources.Clear(); try { switch (reportType) { #region Analog Day Report case ReportType.AnalogDay: start_time = dtpDateStart.Value; AnalogReportObjList [Read More ...]

When you build a .RDLC report in Visual Studio 2010 just like following show, you will find the table header can not repeat on every page when you change pages. Then you might select the table and go to its properties to set something, see below, there are two properties RepeatColumnHeaders and RepeatRowHeaders, you can [Read More ...]

For printing module development, we list common paper sizes here. ISO paper sizes Format A A B B C C Size mm in mm in mm in 0 841 × 1189 33.11 × 46.81 1000 × 1414 39.37 × 55.67 917 × 1297 36.10 × 51.06 1 594 × 841 23.39 × 33.11 707 × [Read More ...]

way 1: = Fields!MyField1.Value + System.Environment.NewLine + Fields!MyField2 way 2: As an alternate, you could use the VB newline constant vbCrLf, so your expression will look something like = Fields!MyField1.Value + vbCrLf + Fields!MyField2.Value

How to pass a parameter to a .rdlc file : Step: 1: In Visual Studio 2010, open your .rdlc file, and open “Report Data” window (If you can not see this window, go to View menu to open it); 2: Right click the “Parameters” node, and add a new Parameter, ie: named it “content“; 3: [Read More ...]

Here we found a solution for hiding a record in .rdlc file: Add the following expression in the Hidden property for the row. =iif((Fields!Etag.Value.ToString().IndexOf(“E”)=0),true,false). This expression will hide the records that are starts with “E”.

In Visual Studio 2010, if you open a report template file .rdlc. sometimes you might find you can not update dataset if your data source changed. The most of possible reason is you did not see the “Report Data” panel in your Visual Studio 2010, see the below screen : IF you can not see [Read More ...]

We found another bug today: Visual Studio 2010 can not update dataset in rdlc file ! In VS2010, Iwe want to refresh the dataset in the Report Data pane but does not update . Other people has already reported to Microsoft, see here.

There is a big bug in Visual Studio 2010 if you use MS ReportViewer and .rdlc file with Nested Objects Data Sources. In old VS version , the Nested Objects data source worked. Just read this article first: Sample on ReportViewer controls with Object data sources containing nested objects Tudortr made it worked in 2006: [Read More ...]

Microsoft Reporter does not only support database, but also a business object. You can create class as your data source of report RDLC file. Here is a sample from MSDN: using System;using System.Collections.Generic; public class Product {    private string m_name;    private int m_price;     public Product(string name, int price) {        m_name = name;        m_price = [Read More ...]

© 2013 CodeEase.com Suffusion theme by Sayontan Sinha