microsoft-reporting

What is the best way to dynamically generate RDLC report definitions at runtime?

余生颓废 提交于 2019-12-20 04:13:46
问题 I have data that will be generated by users at runtime by performing queries. The shape of the data is unknown because users can choose which fields to bring back. The application is an ASP.NET MVC web app. The data will be .NET POCOs. However, each object could have properties that are collections of other objects. I want to use the RDLC format for the reports so that I can leverage the PDF, Excel, Word, etc export functionality. I envisage the data being displayed in a grid, with nested

RDLC Report Data not refreshing and crashing Visual studio

▼魔方 西西 提交于 2019-12-11 10:36:23
问题 I am asking this question because I had a lot of problems with getting the report data to work with my report and the other answers did not work for me. Task: The data source of the report is outdated and needs to be refreshed. Problem: Refreshing the data Set in the Report Data viewer will make visual studio crash. This happened to me using Visual studio 2012. 回答1: I found the answer to this question after searching around a bit in the rdlc file. You can open the rdlc file in a text editor

LocalReport.SetParameters Exception An attempt was made to set a report parameter 'ParameterName' that is not defined in this report

孤人 提交于 2019-12-10 18:53:13
问题 i have two buttons (button1, button2) the two buttons open two identical report except that report2.rdlc has a string parameter if i pressed button1 first the message box show parameters count = 0 (as expected) and i get report1.rdlc displayed in the reportviewer1 if then i pressed button2 the message box show parameters count = 0 again (i expect it to show 1) and i get LocalProcessingException {"An attempt was made to set a report parameter 'Report2ParameterString' that is not defined in

A Tutorial For Microsoft Report In WinForm Applications

戏子无情 提交于 2019-12-03 04:30:48
问题 I am using Microsoft Report in My WinForm Application Project.I am some problem with expressions and group and even filters and many thing else.I am looking for a compelete tutorial for Microsoft Report.But I didn't found any tutorial until now.Can you help me to find a tutorial? I have found this.Tell me if u know better. Thanks 回答1: Creating the Client Report Definition file (RDLC) Add a folder called “RDLC”. This will hold our RDLC report. Right click on the RDLC folder, select “Add new

A Tutorial For Microsoft Report In WinForm Applications

让人想犯罪 __ 提交于 2019-12-02 17:42:48
I am using Microsoft Report in My WinForm Application Project.I am some problem with expressions and group and even filters and many thing else.I am looking for a compelete tutorial for Microsoft Report.But I didn't found any tutorial until now.Can you help me to find a tutorial? I have found this .Tell me if u know better. Thanks yeasir007 Creating the Client Report Definition file (RDLC) Add a folder called “RDLC”. This will hold our RDLC report. Right click on the RDLC folder, select “Add new item..” and add an “RDLC” name of “Products”. We will use the “Report Wizard” to walk us through

What is the best way to dynamically generate RDLC report definitions at runtime?

[亡魂溺海] 提交于 2019-12-02 03:25:06
I have data that will be generated by users at runtime by performing queries. The shape of the data is unknown because users can choose which fields to bring back. The application is an ASP.NET MVC web app. The data will be .NET POCOs. However, each object could have properties that are collections of other objects. I want to use the RDLC format for the reports so that I can leverage the PDF, Excel, Word, etc export functionality. I envisage the data being displayed in a grid, with nested grids for the collection properties. What are my options for generating the RDLC data? Can RDLC handle

The source of the report definition has not been specified

廉价感情. 提交于 2019-12-02 00:38:42
I'm using the following code trying to SetParametr : var report = new ReportParameter[1]; report[0] = new ReportParameter("MyName", "Raha"); var reportDataSource1 = new ReportDataSource { Name = "WpfApplication17_User", Value = _users }; _reportViewer.LocalReport.DataSources.Add(reportDataSource1); _reportViewer.ServerReport.SetParameters(report); _reportViewer.LocalReport.ReportPath = "../../Report1.rdlc"; _reportViewer.RefreshReport(); error : The source of the report definition has not been specified Why wrong? I've created a report parameter , Parameter name is 'MyName' UPDATE : I'm using

SubReport is not working after adding parameter

拜拜、爱过 提交于 2019-11-30 09:57:15
问题 I am working on RDLC report On VS2012 When I am trying add a parameter on my Sub report then my report is not working and I am getting this error “Error: Sub report could not be shown.” And after adding parameter this event LocalReport_SubreportProcessing(object sender, SubreportProcessingEventArgs e) is not even called. 回答1: I realize that I'm late to the party here but this question came up during my searches so maybe this will help someone. I finally got sup reports working in my main

SubReport is not working after adding parameter

此生再无相见时 提交于 2019-11-29 17:39:58
I am working on RDLC report On VS2012 When I am trying add a parameter on my Sub report then my report is not working and I am getting this error “Error: Sub report could not be shown.” And after adding parameter this event LocalReport_SubreportProcessing(object sender, SubreportProcessingEventArgs e) is not even called. I realize that I'm late to the party here but this question came up during my searches so maybe this will help someone. I finally got sup reports working in my main report of my web application. in Page_Load I added ReportViewer1.LocalReport.SubreportProcessing += new