rdlc

ReportViewer - modify toolbar?

▼魔方 西西 提交于 2019-12-20 15:24:59
问题 Do anyone have good ideas of how to modify the toolbar for the WinForms version of the ReportViewer Toolbar? That is, I want to remove some buttons and varius, but it looks like the solution is to create a brand new toolbar instead of modifying the one that is there. Like, I had to remove export to excel, and did it this way: // Disable excel export foreach (RenderingExtension extension in lr.ListRenderingExtensions()) { if (extension.Name == "Excel") { //extension.Visible = false; //

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: Apply Filter to Report

雨燕双飞 提交于 2019-12-20 03:14:49
问题 I have two parameters dateFrom and dateTo which I want to filter my report based on those values and show sum of total column of filtered rows in the report. Currently when I use expression =Sum([total]) it returns the sum of whole column in database and it doesn't applying date filter on expression. Question: How to apply sum of total between dates dateFrom and dateTo parameter like Something like this pseudo-code: =Sum(Field!Total.Value) where date between dt_from to dt_to Here is the code

Sum of Column Values in Table - Rdlc report

醉酒当歌 提交于 2019-12-20 02:54:21
问题 I have a Table in Rdlc report with 6 Columns and a dataset. A dll is added ( referenced ) to the Report, named RepHlpr.dll. This dll have a shared function GetPar which calculates and gets data from other databases. Column Amount is working fine and getting data as per the expression, As : While getting Sum of Copper and HP , Everything Works fine because these column gets values from dataset. I am getting problem to get Sum of Values of Amount . I have tried Expressions : =Sum(Textbox44

RDLC Report hyperlink are not working in browser

橙三吉。 提交于 2019-12-20 02:52:45
问题 I have a problem with hyperlinks in my rdlc report. I configured a tablix's textbox by applying steps in this tutorial.(It seems very easy though) It seems to hyperlinks are not working in the reportviewer control (I mean when I look to report in browser) but when I export that report to PDF all these links works as shine. I tried setting enableHyperlinks option to true. I tried in different browsers. Any comment on where could I be wrong is appriciated. 回答1: I'm not sure if this relates to

Error While Using Multiple Datasets in RDLC Report

冷暖自知 提交于 2019-12-20 02:29:51
问题 I am creating RDLC report with two datasets. Earlier i was using one dataset and it was working fine,but when i added second dataset it started giving me following error for textboxes. Error 1 The Value expression for the text box ‘Textbox10’ refers to the field ‘HospitalAddress’. Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope. Why is this happening? Please help.... 回答1: You need to specify which

Visual Studio 2013 Crashed While add a DataSet in RDLC report

我与影子孤独终老i 提交于 2019-12-20 02:29:08
问题 When I try to add DataSets to any RDLC report within asp.net Project, Visual Studio stop work and restart. 回答1: I have tried adding DataSet using VS 2012 and 2015, both attempts produced an error same as yours. This only happens to one of my VS projects. Took me several hours to find out that the cause is an unused but referenced dll. After removing that from my project references, I can finally add DataSets successfully. 回答2: Apart from reference issue, my case was different. It was 3rd

Bind child object property with in rdlc (Report)

白昼怎懂夜的黑 提交于 2019-12-20 01:36:05
问题 I have a custom object say "objMain" in which i have few properties and also the property of object type (i.e. like a child object). objMain has these properties: 1. Name [type: string] 2. Description [type: string] 3. StartDate [type: datetime] 4. ObjSubject [type: object] - this is of custom type ObjAddress has these properties 1. SubjectID [type: int] 2. SubjectName [type: string] I need to display Name, description, startdate and SubjectNames related to that name. It show the data in Name

Using multiple datasets in RDLC

半城伤御伤魂 提交于 2019-12-19 21:47:46
问题 I am working on rdlc reports, and the reports work just fine. I got stuck when I added one more dataset to the rdlc file. On adding the dataset, it added a data source as well. I ran the project, and the report was no more working giving the error: A data source instance has not been supplied for the data source Can some one please guide me on what steps to take in order to use multiple datasets. I am using Visual Studio 2012. 回答1: Multiple Datasources are added as follows: ReportViewer1

Dynamically binding of Dataset to RDLC Reports

安稳与你 提交于 2019-12-18 17:27:44
问题 I would like to bind the dynamically dataset to the rdlc. I can view the report if I use inline DataSource in ASPX file (static binding). However, if I use the following codes, the Report viewer keeps showing "Loading.." Image. I have already check the dataset name and if I changed the dataset name to "Orders2", it shows me that required dataset "Orders" is not provided. So, I add the GridView on the form and test my DataSet. The dataset contains data and showing well with the GridView. The