reportviewer

ReportViewer error - The definition of the report " is invalid. Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectMode

百般思念 提交于 2019-12-07 05:49:33
问题 I have ReportViewer in my project. When I create .exe of this file in InstallShield in Vsual Studio 2012 I add into Redistributables Microsoft ReportViewer 2010 . When I do install my app on Windows 8 - every ReportViewer displays it's report correctly. I'm having problem on Windows XP the ReportViewer loads correctly but displayes this error instead of correct Report: An error occurred during local report processing. The definition of the report " is invalid. An unexpected error ocurred in

How do I export directly to a word document in report viewer

假装没事ソ 提交于 2019-12-07 04:20:24
问题 I have created a report with some data in it. I do not want the user to have to click on the forms export button and export the data to a word document. The file saves fine the problem is when I go to open the document in word its just a bunch of garbage instead of the report that was supposed to save. my save button looks like this: SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.InitialDirectory = @“C:\”; saveFileDialog.RestoreDirectory = true; savefileDialog.Title =

Microsoft ReportViewer Web Control Requiring a ScriptManager

荒凉一梦 提交于 2019-12-06 19:06:27
问题 I'm trying to render the report viewer programmatically within a custom Page placed in an IHttpHandler context ReportViewer rv = new ReportViewer(); ReportDataSource rds = new ReportDataSource(); rds.Name = "Report"; rv.LocalReport.ReportPath = "Report.rdlc"; rds.Value = SomeReportObject; rv.LocalReport.DataSources.Add(rds); rv.LocalReport.Refresh(); ScriptManager scriptHandler = new ScriptManager(); MyPage p = new MyPage(); p.Controls.Add(scriptHandler); p.Controls.Add(rv); using (TextWriter

Datasource for RDL reports with ReportViewer

若如初见. 提交于 2019-12-06 15:28:43
I have some RDL reports created with SQL Server BI Development Studio and now I need to render them using the ASP.NET Report Viewer. Even though my RDLs contain references to the SQL server and the SELECT query, it keeps saying I need to specify a datasource for the report. Is there a way to make the datasource from the RDL be used or do I have to pass a datasource to the report viewer via C# code? Thank you. Paul Patterson Did you verify the DataSourceReference element in your RDL? It needs the path to the reporting server. The DataSourceReference element can contain a full folder path (for

How do I export a DataGridView to ReportViewer?

耗尽温柔 提交于 2019-12-06 13:54:09
I am working on a C# project within which I am generating reports from database and displaying then in a DataGridView because it is simpler to add rows and columns dynamically. But I now need to export a DataGridView content into a ReportViewer on the fly for printing purpose. I don't want to show up the ReportViewer. I just want to create its instance and populate from my DatagridView and then display the Print Dialog instantly in order to get a hight quality and well organized layout in the output. Currently I'm printing reports by converting them to HTML and then assign it to a WebBrowser

How to handle report viewer session expired exception

て烟熏妆下的殇ゞ 提交于 2019-12-06 07:28:11
问题 I have the following situation: Microsoft Report Viewer 2010 is used to display reports (.rdlc files) in local mode in an ASP.NET web application. The report data is supplied by assigning a datasource in the code behind of an ASPX page. Here's an example: if(!IsPostBack){ ReportViewer1.Reset(); ReportDataSource reportDataSource = new ReportDataSource(); reportDataSource.Name = "DataContainerType"; reportDataSource.Value = DatasourceOnPage; reportDataSource.DataSourceId = "DatasourceOnPageID";

A data source instance has not been supplied for the data source 'Request'

拈花ヽ惹草 提交于 2019-12-06 06:54:18
问题 I'm getting an error on my reportviewer which I am not sure how to correct this.... The error that I am gettings is : " A data source instance has not been supplied for the data source 'Request'." I have tried searching for this, but can't find anything that I can see that is wrong, can somebody please point me in the right direction? This is how my reportvierer looks like: <rsweb:ReportViewer ID="rptViewer" runat="server" Height="654px" Width="924px" Font-Names="Verdana" Font-Size="8pt"

How to Add Two DataTables to a Tablix Using ReportViewer Design

三世轮回 提交于 2019-12-06 06:38:12
问题 I am trying to add two DataTables to a Table (tablix) in my report using ReportViewer. DataTables dtPrograms (Name, Description) dtImprovements (Improvement) I'll have a list of programs and a list of improvements for each program. Here's an example of what I'm looking for: I'm not sure how to design my ReportViewer. Is using a Table (tablix) a good method or are there easier methods of doing so? Perhaps using a Matrix? How would you go about designing a report that contains two DataTables?

Print button not available in ReportViewer using IE11

北战南征 提交于 2019-12-06 04:58:38
问题 So we noticed that the print button in our ReportViewer ( Version=10.0.0.0 ) is gone after upgrading to IE11 . This is how it looks like in IE10 : After doing some research, we found that other people are also reporting this problem (i.e. here), but did not find a solution yet. Using the compability mode would be a workaround option, but is not a viable/fitting solution for clients. Did anyone figure out how to fix this? 回答1: These weeks ,we face the same problem. Finally we find some way to

Switching DataSources in ReportViewer in WinForms

拥有回忆 提交于 2019-12-06 03:34:21
I have created a winform for the users to view view the many reports I am creating for them. I have a drop down list with the report name which triggers the appropriate fields to display the parameters. Once those are filled, they press Submit and the report appears. This works the first time they hit the screen. They can change the parameters and the ReportViewer works fine. Change to a different report, and the I get the following ReportViewer error: An error occurred during local report processing. An error has occurred during the report processing. A data source instance has not been