reportviewer

Report Viewer - scaling issue with system DPI change

走远了吗. 提交于 2019-12-01 01:27:02
问题 I have a Winforms application (in Visual Studio 2010) that contains a Report Viewer control that previews and prints an A4 size report. One user has his Windows font size set to 150% (i.e. a system DPI change) and when he runs the report, it is shrunk to 2/3 size in both the Report Viewer preview and the printed report. The AutoScaleMode property of the form containing the Report Viewer is set to "Font", although it doesn't seem to affect the report if I change this. This isn't a font

Report Viewer Configuration error - In View Source of webpage

ε祈祈猫儿з 提交于 2019-11-30 23:00:54
问题 I found the following error message when I checked View source of the web page , but the web page works just fine. Our Test lead found the error while performing Assertion tests. Report Viewer Configuration Error: The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add <add verb=" * " path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler,Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral

How do I fill a dataset in an SSRS subreport?

拥有回忆 提交于 2019-11-30 21:30:20
This seems like it should be trivial but I'm having difficulties. I have a main report, I have been filling datasets as follows in ReportViewer.aspx.cs. ReportViewer.LocalReport.ReportPath = "~/SummaryReport.rdlc"; ReportDataSource requestsSource = new ReportDataSource(); requestsSource.Name = "RequestHeadersDataSet"; requestsSource.Value = GetSummaryRequestsDataSet(); // Returns DT ReportViewer.LocalReport.DataSources.Add(requestsSource); I also have a subreport, which is referenced in my main report within a row-group in a table. The dataset has column RequestName . I pass this in through

Insert unknown number of Images to the report at runtime using reportviewer

£可爱£侵袭症+ 提交于 2019-11-30 21:06:52
问题 I'm using reportviewer and I would like to add an unknown number of images to the report on runtime. The user should select some images (in another place) and those images should be displayed in the report one after the other. Do you have any idea how to do that using reportviewer? thanks, Ofir 回答1: There are many ways to do this. Here is one possibility: You will need to set up the datasource for the report dynamically, this blog post will help with that. Your dataset needs to have a table

Using Object data source in ASP.NET 4 ReportViewer

只谈情不闲聊 提交于 2019-11-30 19:30:15
OK, I think I'm getting mad here... I thought this should be super simple, but I just can't figure out how to do that. This is what I'm trying to do: I want to create an rdlc report using the ReportViewer control in ASP.NET 4 (VS 2010), and, as its datasource, use a class with some properties. I tried everything I can think of, but I just can't figure this out. All the docs I found state that the object should appear in the DataSource pane of the website, but I can't make it appear there. I would like the fields of the class to appear in the report desiger so I can use them - but I can't do

Microsoft.ReportViewer.Common Version=12.0.0.0

北城以北 提交于 2019-11-30 19:16:04
I'm getting the following exception in my Windows Service Application: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. I cannot find a download url for version 12 and setting the files to "Include" and "Prequisite (Auto)" does not solve the problem in this Windows Service Application, although it works fine in my WinForms Application and results in the appropriate files being included and referenced along

Change SSRS data source of report programmatically in server side

烂漫一生 提交于 2019-11-30 18:04:49
Today, for each customer, we deploy same SSRS reports folder and data source folder. The difference between these folders are the name of each folder and the connection string of the data source. We are using Report Server 2008 R2. Is it possible to maintain only one reports and data source folder and change programmatically its connection string on server-side before the report been rendered ? If not, Is it something that can be achieved by changing some logic in reports? Today we use "shared data source" option. Ian Preston This is something we've done in our environment - we maintain one

How do I fill a dataset in an SSRS subreport?

て烟熏妆下的殇ゞ 提交于 2019-11-30 17:01:55
问题 This seems like it should be trivial but I'm having difficulties. I have a main report, I have been filling datasets as follows in ReportViewer.aspx.cs. ReportViewer.LocalReport.ReportPath = "~/SummaryReport.rdlc"; ReportDataSource requestsSource = new ReportDataSource(); requestsSource.Name = "RequestHeadersDataSet"; requestsSource.Value = GetSummaryRequestsDataSet(); // Returns DT ReportViewer.LocalReport.DataSources.Add(requestsSource); I also have a subreport, which is referenced in my

Getting the relative path to the rdlc report in my winform app

帅比萌擦擦* 提交于 2019-11-30 13:42:29
I am automatically creating a PDF from some of our reports in a month-end process. I am running into a problem where ReportViewer.LocalReport can't find my report. Within the project, the report files are in "(project root folder)/Reports/report.rdlc". How do I set ReportViewer.LocalReport.ReportPath so I can reference my report file? I would rather not set the full path because I don't know where it would be installed when installed on the client machines. Use the Application.StartupPath property, it always points to directory where your EXE is located: using System.IO; ... string exeFolder =

Creating a Custom Export to Excel for ReportViewer (rdlc)

只愿长相守 提交于 2019-11-30 12:50:17
问题 I'm interested in creating a custom Export to Excel option for my Report in ReportViewer. This is mostly because I want pdf disalbed and I did that via: ReportViewer1.ShowExportControls = false; Since there is no way to disable any specific export functionality (e.g. pdf but not excel) in ReportViewer. Here's my (slightly) modified code below. Ideally I would like something similar to the previous Export options where I can save the file to whatever location I want. EDIT: The code works but