rdlc

RDLC Report Data doesn't update to reflect changes

大兔子大兔子 提交于 2019-12-31 12:15:08
问题 On my RDLC page, the "Report Data" window shows a custom dataset that it pulls fields from to display. I've modified this DataSet with some additional tables. However, these tables aren't shown and therefore I'm unable to select them for use in expressions (in the Expression window, under Datasets, there are only the tables that were originally there, not the additional tables I've added). Refreshing the data source doesn't do anything, and if I right-click on it and select "New Dataset", I'm

How to repeat table's header rows on each page in Reportviewer11 with Visual Studio 2010

删除回忆录丶 提交于 2019-12-28 17:43:04
问题 I am trying to create some reports on ReportViewer 11 with VisualStudio2010. And I want to repeat table header in each page in export execl. I Set “RepeatOnNewPage” to “True” and “KeepWithGroup” to “After” in Row Groups list. But it still not work. Thanks 回答1: click on the black upside down triangle to the left of the column groups and go to Advance Mode you have to change some of the values for static rows: 1) FixedData True 2) KeepTogether True 3) KeepWithGroup After 4) RepeatOnNewPage True

Rendering an RDLC report in HTML in ASP.NET MVC

元气小坏坏 提交于 2019-12-28 12:06:01
问题 I would like to render an RDLC report in HTML within an ASP.NET MVC project. I successfully made a prototype that renders an RDLC report in PDF, Excel, and TIFF image, with the help of this article. But I was surprised that HTML is not one of the default available formats in LocalReport.Render() . I came across this article, which describes a trick to enable the rendering format of HTML4.0, but I think that is only for a ReportViewer control (I could be wrong though). The question is, in MVC

Very High Memory Usage in .NET 4.0

喜你入骨 提交于 2019-12-28 05:02:32
问题 I have a C# Windows Service that I recently moved from .NET 3.5 to .NET 4.0. No other code changes were made. When running on 3.5, memory utilzation for a given work load was roughly 1.5 GB of memory and throughput was 20 X per second. (The X doesn't matter in the context of this question.) The exact same service running on 4.0 uses between 3GB and 5GB+ of memory, and gets less than 4 X per second. In fact, the service will typically end up stalling out as memory usage continue to climb until

Creating a PDF from a RDLC Report in the Background

微笑、不失礼 提交于 2019-12-27 11:37:07
问题 I am running a month-end process and want to have it automatically create some of the reports that need to be created at that time. I am using rdlc reports. Is there a way to automatically create a PDF from a RDLC report in the background? 回答1: This is easy to do, you can render the report as a PDF, and save the resulting byte array as a PDF file on disk. To do this in the background, that's more a question of how your app is written. You can just spin up a new thread, or use a

Alternate row colors in RDLC using flat dataset

一曲冷凌霜 提交于 2019-12-25 03:07:14
问题 I am using a tablix in an rdlc report which uses a flat (Single row datasource), however the values which are displayed are in multiple rows. I need to add alternate row coloring for the same,I cannot use a RowNumber as I am working off a flat dataset. Are there any other approaches I can take ? TIA 回答1: I'm not certain what you are referring to as a flat single row datasource appearing as multiple rows. I am assuming what you actually have is a regular table of values. You can use a

Set page break for pdf-export from RDLC-report

99封情书 提交于 2019-12-25 01:56:20
问题 The requirements of the project has changed a little bit. So now I created a group in the RDLC-Design viewer, which belongs to an extra column ["pageBreak"]. The values of that colum are dynamically created and used for the RowGroup. The Rowgroup has the option PageBreaks -> between each instance of a group. But I do not want to break the page between each instance, only if the group does not fit on the page, I.e. the groups 1,2,3 are on the page, group4 would be broken and so it moves on the

RDLC Textbox Line Height/Line Spacing

白昼怎懂夜的黑 提交于 2019-12-25 01:48:16
问题 Version: http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition I've been looking for answers online on how to add line height or line spacing in RDLC textbox but to no avail. I also tried <p style="line-height: 1.5;"> but it is not working when exporting to PDF. To double check this, I created a simple html file and using this style I was able to achieve my desired effect. Anyway, the content of my textbox is dynamic so it could change in length. If this were fixed lines

Adding multiple functions to RDLC custom code

时间秒杀一切 提交于 2019-12-24 15:33:29
问题 I am trying to make a comparatively complex rdlc report for my web application and the problem that I am currently facing is that there is one function defined in the custom code section of the report. And then I added another function there and the report is not executing giving an error "The definition of report is invalid." Everytime I remove this function the report runs smoothly, when I add it back it gives this error in the report viewer. 回答1: For writing custom code in rdlc : On the