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 ...]
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 ...]
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 ...]
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 ...]