reportviewer

Can't Display DataTable in ReportViewer aspx.net

ぐ巨炮叔叔 提交于 2020-01-17 12:25:54
问题 I am having difficulty displaying the contents of a DataTable object in a ReportViewer control. There are no errors, just a blank report viewer being shown on the page. I have looked at the solutions presented in various similar questions found here, here and here - that last one is particularly frustrating as the last comment says "let's continue this discussion in chat" with no answer provided and it is essentially my exact issue. Page code: <div class="panel-body"> <rsweb:ReportViewer ID=

Multiple Subreports with a subreport passing value to other

夙愿已清 提交于 2020-01-16 01:06:52
问题 I'm using Report Viewer at C# in WinForms. I have 3 database tables: Equipament, Sector and History, I also have 3 Report.rdlc, The MAIN is the ReportEquipament and the other two subreport are ReportSector and ReportHistory. I already know how to fill the ReportSector, what I want to do is to pass the idSector from the ReportSector, so I can call a procedure at the SQL Server database and search all the History with this Sector ID, and show the data at the ReportHistory. I have no idea on how

Sum Time (HH:MM) in RDLC

。_饼干妹妹 提交于 2020-01-15 12:29:07
问题 I have and RDLC report an I need to get the sum of the fild "Time". I save it in the database with varchar type with the format "hh:mm". I get this with the formula: =(Sum(System.TimeSpan.Parse(Fields!HorasEfectivas.Value).Hours)) &":"& Sum(System.TimeSpan.Parse(Fields!HorasEfectivas.Value).Minutes)) The problem here is the sum of the minutes. 140 minutes shoul be transformed in hours! How can I get this? Regards 回答1: try using TimeSpan e.g. var time1 = new TimeSpan(0,2,02,0); var time2 = new

Populate a reportviewer by codebehind

依然范特西╮ 提交于 2020-01-15 12:26:09
问题 Im using reportviewer with strongly dataset but now I need to populate my reportviewer via codebehind. But I'm getting this error: A data source instance has not been supplied for the data source 'ds_blabla'. Here's my code to feed the dataset: public DataSet PreencheDS(Relatorios rel) { DataSet retorno = new DataSet(); try { string sql = @"SELECT proj.descricao AS projeto, func.descricao AS funcionalidade, clb.clube AS cliente, ch.descricao FROM MyTable ch INNER JOIN table1 proj ON MyTable

Can I remove the ReportViewer language packs with ClickOnce installer

可紊 提交于 2020-01-15 09:01:54
问题 I have a .Net 4 WPF application that is deployed through ClickOnce. The application generates some reports locally and shows them to the user, so it has a reference to Microsoft.ReportViewer.WinForms . These reports are .rdlc and embedded in the application as resources. Recently, we upgraded the .dll from version 10 to the latest version 14 in order to view the newer schema definitions. The problem is that the older version did not have the option to show reports in other languages, but now,

How do you view SQL Server 2005 Reporting Services reports from ReportViewer Control in DMZ

元气小坏坏 提交于 2020-01-14 05:39:10
问题 I want to be able to view a SQL Server 2005 Reporting Services report from an ASP.NET application in a DMZ through a ReportViewer control. The SQLand SSRS server are behind the firewall. 回答1: `So I had to change the way an ASP.NET 2.0 application called reports from pages. Originally, I used JavaScript to open a new window. ViewCostReport.OnClientClick = "window.open('" + Report.GetProjectCostURL(_PromotionID) + "','ProjectCost','resizable=yes')"; The issue I had was that the window.open call

Will there be a SSRS reportviewer in ASP.NET 5 MVC 6?

别来无恙 提交于 2020-01-13 05:12:05
问题 I am working on upgrading an ASP.NET 4.0 WebForms app to MVC6 and cannot find a solution for displaying SSRS reports. With the absents of System.Web the Microsoft ReportViewer control no longer works. What is the best practice for displaying SSRS reports on the web in ASP.NET 5? 回答1: @Brian - ASP.NET MVC 6 is still in beta stage, its very early to plan for upgrading ASP.NET 4 web forms to MVC 6. Please try using ASP.NET MVC 5 for upgrading web forms, it (MVC5) will be there for many years to

How to add rdlc file to ReportViewer in WPF projects

我的未来我决定 提交于 2020-01-09 20:43:33
问题 I've added a ReportViewer in a WPF app via the XAML designer of my main window and I'd like to add an existing rdlc file to it. I'd like my reportviewer to show an empty rdlc file (without the parameters) on startup, and later upon selecting a row from my datagrid (bound to an observablecollection) change its parameters accordingly and show the filled report definition instead of the empty one. I'll make a button with the selected row as commandparameter and the relevant events and everything

How to add rdlc file to ReportViewer in WPF projects

倖福魔咒の 提交于 2020-01-09 20:36:14
问题 I've added a ReportViewer in a WPF app via the XAML designer of my main window and I'd like to add an existing rdlc file to it. I'd like my reportviewer to show an empty rdlc file (without the parameters) on startup, and later upon selecting a row from my datagrid (bound to an observablecollection) change its parameters accordingly and show the filled report definition instead of the empty one. I'll make a button with the selected row as commandparameter and the relevant events and everything

Using datatable as datasource in micrsosoft report viewer

五迷三道 提交于 2020-01-06 14:49:48
问题 Is it possible to use datatables as datasource for reportviewer component? Can you provide refference or simple steps how to do that? And one important thing: i'm using reportviewer for webforms (ASP.net) 回答1: Try something like this. this.reportViewer.LocalReport.DataSources.Clear(); DataTable dt = new DataTable(); dt = this.inputValuesTableAdapter.GetData(); Microsoft.Reporting.WinForms.ReportDataSource rprtDTSource = new Microsoft.Reporting.WinForms.ReportDataSource(dt.TableName, dt); this