reportviewer

Can the .net reportviewer control be fully operated by code only (ie., minus the toolbar)

纵然是瞬间 提交于 2019-12-11 11:21:55
问题 Just started on a touchscreen based project that uses the reportviewer control. I will obviously be putting my own big buttons for report navigation , export to pdf etc since even people with tiny fingers will have a hard time clicking the out of box toolbar that comes with this control (see below screenshot). Can I do all of this from code 1) Show next / prev/first /last page of report 2) Show print dialog/page setup dialog/print layout 3) Export to pdf Thats all we need for now. I am going

Report Viewer .rdlc How to pass a parameter?

耗尽温柔 提交于 2019-12-11 10:31:46
问题 So apparently I been doing a trial balance report in C# windows form - report viewer that shows a YEARLY report of "ACCOUNTS" and its total payable in each account. The report has a supposed yearly compounding value depending from the user choice - ex. Jan. 1 2013-to-Feb. 1 2014 , there will be a compounding value from Jan-Dec 2013, "TOTAL=4,500,000" and Jan-Feb 2014, "TOTAL=45,000 ". What I have in the report is a continues compounding value, Jan-Dec 2013, "TOTAL=4,500,000" and Jan-Feb 2014,

RDLC Native Error 255

本秂侑毒 提交于 2019-12-11 09:43:06
问题 I have an ASP.Net site running on 4.5.2, using the report viewer control. All of a sudden on our server, we are getting An unexpected error occurred while compiling expressions. Native compiler return value: ‘255’. This is occurring for all of our reports (Most of which haven't been modified in over a year). I am trying to identify what potentially changed and is causing this and am coming up short. We are on Windows Server 2012. I have found some articles pointing to an issue that occurs

ReportViewer 2010 struggling with polymorphism

此生再无相见时 提交于 2019-12-11 07:35:10
问题 I have a rdlc report that takes as a ReportDataSource a List<BaseClass> . BaseClass has two derived classes A and B . In the report, I group based on a property of the base class. As long as the list only contains objects of A or B , all works fine. However if I mix instances from A and B , then the report creation fails with the following message: The Group expression used in grouping '[Group Name]' references a dataset field which contains an Error: FieldValueException The property returns

Modifying Export to Excel in ReportViewer

随声附和 提交于 2019-12-11 07:28:32
问题 I have a formatted table in ReportViewer. When I want to export to Excel though - I do not want to export the formatted table - instead I want to output the original/raw/unmassaged data table in an excel file. What's the best way to intercept the Export to Excel function and output data in a different format? 回答1: Put the ShowExportButton to False in the ReportViewer and add a new button in your page that do the work. Or you can get into the ReportExport event, set the Cancel to True , and

Using a stored procedure containing dynamic SQL to create a report in C# (Report viewer)

南楼画角 提交于 2019-12-11 05:37:23
问题 I have a SQL Server stored procedure that I want to use to create a report in my application (c#). Because the table in the procedure is dynamically created I am having trouble using it to create a report. How can I use this procedure to create a report in my application? I am using VS2010, SQL Server 2008 R2 I created a dataset in VS but not sure how to use it from there. The report wizard cannot use the dataset I created. I gave thought to somehow using this to create a view and then

Report viewer export and print events

ⅰ亾dé卋堺 提交于 2019-12-11 05:29:03
问题 I need to catch the exporting and printing activities of a report viewer because I need to log the username and the time/date of such activity. I have had a look at the telerik report viewer events and as well as at the standard asp report viewer but I do not see any of the events that may help me in these regards. How can I catch the printing and export activity of the report viewer to embed my code: Utilities.Record_Transaction("Report_xxx-Exported to Excel " + cname, (string)Session[

Alternative to ReportViewer [closed]

a 夏天 提交于 2019-12-11 04:05:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Hey, I've been getting some beans from my webhost setting up support for MSFT's ReportViewer. Are there any good alternatives you can recommend? 回答1: Well there is Crystal Reports - check this breakdown out Crystal Reports vs ReportViewer Pros/Cons? 回答2: Jasper reports is another alternative. it is open source

C# Response.Write pdf not working with Android Browser

筅森魡賤 提交于 2019-12-11 03:55:31
问题 I am currently having huge issues with the android environment with a pdf export. i am using a report viewer control to render a report in to an array of bytes. Next i am using response.binarywrite method to output the byte stream to the browser. This works in every browser as well as iphone and ipad. However, it will not work on android. The Pdf says that it is corrupted. When i open the pdf in notepad i see that it is exporting my entire page html instead of the byte array generated by the

Printing an SSRS report in Landscape mode from Windows Forms application

核能气质少年 提交于 2019-12-11 03:35:18
问题 I have a Windows Forms application that has a textbox , a button , and 3 ReportViewer . The 3 ReportViewer boxes are hidden. When you enter a ShopOrder into the textbox and click on the button, it will automatically pass the Shop order value as a parameter to all 3 reports, render the report, and once the rendering is complete, render the report as EMF file, print the report. I am using this link as a guide to print SSRS reports automatically from a Windows Forms application. I have a few