reportviewer

ReportViewer - Programmatically generate report

佐手、 提交于 2019-12-11 03:09:06
问题 I am trying to use the built-in Report Viewer control to generate my custom reports. Crystal Reports is heavy and doesn't work on all client computers therefore I'm giving the microsoft report build a try. The goal of this report is to print a list of all programs. They aregotten from the database and stored in a list like so: Private Function ProgramDataset() As DataSet Dim ds As DataSet = New DataSet("Programs") Dim allPrograms As List(Of clsProgram) = clsProgram.GetAll() 'Build datatable

Report Viewer in WPF

泄露秘密 提交于 2019-12-11 01:23:33
问题 I have a WPF project and I need to preview a crystal report. Is it possible to do this? I can't find a report viewer control in WPF project. thanks 回答1: You can use CrystalReportViewer of windows form with Windows form interop technology to add the viewer to your WPF applicaion. see WindowsFormsHost Class 来源: https://stackoverflow.com/questions/6635966/report-viewer-in-wpf

LocalReport.SetParameters Exception An attempt was made to set a report parameter 'ParameterName' that is not defined in this report

孤人 提交于 2019-12-10 18:53:13
问题 i have two buttons (button1, button2) the two buttons open two identical report except that report2.rdlc has a string parameter if i pressed button1 first the message box show parameters count = 0 (as expected) and i get report1.rdlc displayed in the reportviewer1 if then i pressed button2 the message box show parameters count = 0 again (i expect it to show 1) and i get LocalProcessingException {"An attempt was made to set a report parameter 'Report2ParameterString' that is not defined in

How to show a title on each page of the report dynamically created reportviewer

こ雲淡風輕ζ 提交于 2019-12-10 18:52:35
问题 I create the report dynamically, i e, I have no way to open a designer RDLC and fix it. I create a table and fill it through the dataset. Getting XML file and export it to PDF file. But even if I write string deviceInfo = "<DeviceInfo>" + " <OutputFormat>PDF</OutputFormat>" + " <PageWidth>11in</PageWidth>" + " <PageHeight>8.5.0in</PageHeight>" + " <MarginTop>0.05in</MarginTop>" + " <MarginLeft>0.05in</MarginLeft>" + " <MarginRight>0.05in</MarginRight>" + " <MarginBottom>0.05in</MarginBottom>"

Error in using report viewer in visual studio 2012 in design mode

我的未来我决定 提交于 2019-12-10 18:45:22
问题 I'm using visual studio 2012 to develop a MVC application. I have added an ascx page to my project to put the report viewer in. When I drag and drop the ReportViewer component from toolbox in the page, It doesn't show the ReportViewer correctly and shows this error on it: Failed to create designer 'Microsoft.Reporting.WebForms.ReportViewer, Microsoft.Reporting.WebForms version 10.0.0.0, Culture=natural, PublicKeyToken=b03f5f7f11d50a3a' I have also added Microsoft.ReportViewer.WebForms

How do I programmatically set data source for ASP.NET ReportViewer control?

♀尐吖头ヾ 提交于 2019-12-10 14:44:45
问题 How do I programmatically set the data source for the ASP.NET ReportViewer control? I have a VS 2008 ReportViewer control and want to switch between a couple of different reports. I can switch reports by setting the report source and refreshing the control, but I can't see where to set the data source. Each report has its own data source, and if I configure them initially when the control is built it is fine, but I need to switch between them. 回答1: I assume the question is about ReportViewer

Preserve white space when hiding textbox in rdlc file

…衆ロ難τιáo~ 提交于 2019-12-10 13:32:08
问题 I've created a report that has an image on the left that is conditionally visible based on a parameter that's passed in to the report. There is another textbox on the right side of the page. I'm observing that when the image's Hidden property is set to "True" then the textbox on the right side stays in the right place. When the image's Hidden property is set to =IFF(1 = 1, true, true), then the textbox on the right is being shifted to the left, and the report looks ugly. How can I have the

Display RDLC reports in MVC 4 using report viewer

醉酒当歌 提交于 2019-12-10 12:24:33
问题 I want to display RDLC report in web form in MVC 4 application. I am not getting any proper documents for the same. Can anyone please guide me how can I show RDLC report in web page in MVC 4? The RDLC reports are data bound and few of them have nested reports. 回答1: Step-6: Add Report file(.rdlc) and Design your report. In this example I have added a folder for store .rdlc files Named "RPTReports" Right Click on report folder > Add > New item > Select Report under Reporing > Enter report file

ReportViewer 10.0 on IIS 7.5 not rendering

。_饼干妹妹 提交于 2019-12-10 08:28:44
问题 We are trying to move our reports from Visual 2008 to Visual 2010, but we are not being capable of making ASP.NET ReportViewer control work on our IIS 7.5 machines. The OS is Windows 7. We have moved all our refernces to Microsoft.Reporting.WebForms 10.0 in code and in config files as well. Our Web.config file is the following sections regarding ReportViewer: <system.web> <httpHandlers> <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler,

Can't find ReportViewer event for rendering complete

99封情书 提交于 2019-12-10 02:11:33
问题 I'm trying to fire an event (to remove a custom progress/status indicator) when the ReportViewer control is finished rendering. I've explored the events for the ReportViewer control and I can't seem to find one that actually fires when the report is complete. I'm using Visual Studio 2010 and ASP.NET 4. Thanks for your help. 回答1: One option would be to continuously poll the isLoading property of the client side ReportViewer api. If the isLoading property returns true continue showing the