reportviewer

Datasource for RDL reports with ReportViewer

折月煮酒 提交于 2019-12-08 05:11:31
问题 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. 回答1: Did you verify the DataSourceReference element in your RDL? It needs the path

How do I export a DataGridView to ReportViewer?

拟墨画扇 提交于 2019-12-07 21:37:32
问题 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

ReportViewer grouping header in report header section?

 ̄綄美尐妖づ 提交于 2019-12-07 19:23:11
问题 Hi, I'm working on a report which uses reportviewer in VS2010. It is an invoice report. It has some accounts in the system, for each account , it has some orders . Now, in each month, we need to send the invoice to each account. In the report, at the top, we need to list "Bill To" (the address for each account) and "Invoice#" , for each account , it is different , and it is continouous . Then, at the center, it should list the details of the orders for this account. Obviously, each account

Switching DataSources in ReportViewer in WinForms

匆匆过客 提交于 2019-12-07 17:18:40
问题 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

How to configure ReportViewer so it can be exported CSV in ASP.NET?

↘锁芯ラ 提交于 2019-12-07 17:12:24
问题 How to configure ReportViewer so it can be exported CSV in ASP.NET (ReportViewer that comes from VisualStudio 2005/2008)? So it will be apart of current drop downlist? At the moment, it's only for Excel and PDF but not CSV. Thanks 回答1: When you run Report Viewer in Local mode, you cannot export to anything other than PDF and Excel. If you want to be able to export to other formats, you need to run Report Viewer in Server Mode. The rendering is then done on the SQL server through extensions.

Use comma for decimals and period for thousands rdlc report

假如想象 提交于 2019-12-07 16:12:24
问题 I'm using Report Viewer Control (rdlc) to generate reports. One of my columns represent a decimal value from a SQL database, for example: 5199.9800 and at the end of this column, all the amounts are summed. So, the amounts rows are represented this way: =Fields!DEBIT.Value And the total row is represented this way: =Sum(CDbl(Fields!DEBIT.Value), "dtsItems") Currently all the values are formatted in the standard way, using comma for thousands and period for decimals like this: 5,199.98 but i

Set reportviwer's parameter in an application

吃可爱长大的小学妹 提交于 2019-12-07 14:19:48
问题 How do we set the parameters of .Net's reportviewer? 回答1: List<ReportParameter> paramList = new List<ReportParameter>(); paramList.Add(new ReportParameter("ClientName", clientName, false)); TheReportObject.LocalReport.SetParameters(paramList); And you have to make sure you define the same named parameters inside the report definition as well. 来源: https://stackoverflow.com/questions/637464/set-reportviwers-parameter-in-an-application

Report Viewer control not showing report from SSRS

て烟熏妆下的殇ゞ 提交于 2019-12-07 09:46:34
问题 I'm using MS Report Viewer 10 in VS 2013; the project is being upgraded from VS 2010. I have worked through a series of issues relating to Report Viewer, and have the control itself up and running. I have a number of reports in SSRS, and I have confirmed that the reports themselves work properly. I have a Web Forms ASPX page for data input. It passes data via JSON to a popup ASPX page that contains the Report Viewer control. I am running IIS Express 7, SQL Server 2008 R2 (v10.50), and a

Export to Excel using ReportViewer built-in feature

断了今生、忘了曾经 提交于 2019-12-07 08:58:47
问题 I'd like to know if it is possible to set the Excel output as "Locked", in the sense that when we try to change a Cell's value, then there will be a warning indicating that we can not change it unless we remove the Sheet's protection. I know that we can develop a custom Excel automation code, and set a Password to protect the sheet just before we save it. But, is there any easy way to accomplish this using ReportViewer's built-in feature? 回答1: After doing some research, I've managed to find

The attempt to connect to the report server failed - Setting URL and Path in ASP.NET?

强颜欢笑 提交于 2019-12-07 07:05:31
问题 I'm trying to connect to a Report (rdlc file) using ASP.NET Web Applications. I'm working with VS2010 and the Report Server is version 2008. I have the following URL to the report which works fine: http://server url/Products/_layouts/ReportServer/RSViewerPage.aspx?rv:RelativeReportUrl=/Products/Dashboards/Product_tool.rdl&Source=Server Url/Products/Dashboards/Forms/AllItems.aspx&DefaultItemOpen=1 When i enter that URL in my browser it first asks for a username password. When i log in then the