reportviewer2008

unable to generate RDLC report on client machine after deployment

好久不见. 提交于 2020-12-14 05:51:01
问题 I created an application that uses Microsoft.ReportViewer to show rdlc reports. The application is working fine on the dev. machine. now I am trying to deploy it on a client machine (windows 7) but when I generate the report nothing happens. Nothing at all. No error message and no exception. I am guessing this is due to missing Microsoft.ReportViewer.Winforms.dll/or framework?? I have set copyLocal=true for this dll but still no luck. what is the issue? After putting message boxes at

unable to generate RDLC report on client machine after deployment

北城余情 提交于 2020-12-14 05:47:52
问题 I created an application that uses Microsoft.ReportViewer to show rdlc reports. The application is working fine on the dev. machine. now I am trying to deploy it on a client machine (windows 7) but when I generate the report nothing happens. Nothing at all. No error message and no exception. I am guessing this is due to missing Microsoft.ReportViewer.Winforms.dll/or framework?? I have set copyLocal=true for this dll but still no luck. what is the issue? After putting message boxes at

How to Get Total Page Count for a Report Using CrystalReportViewer?

给你一囗甜甜゛ 提交于 2020-01-06 06:50:13
问题 I am using Crystal Report 2008 with C# , have a WinForm and want to show Page N of M to user in a Label . How can I impelemnt that? I searched and couldn't find any straightforward answer. NOTICE : I used a CrystalReportViewer1 and CRGeneral.rpt 回答1: this way works well But i think I can Find better solution: viewer.ShowLastPage(); string TotalPage = viewer.GetCurrentPageNumber().ToString(); viewer.ShowFirstPage(); pageNo.Text = viewer.GetCurrentPageNumber() + " of " + TotalPage; Any Better

ReportViewer Control and SQL SessionState in Remote SSRS Server Mode

一个人想着一个人 提交于 2019-12-24 11:27:30
问题 I have an issue with the way the ReportViewer Control uses SessionState. Background : We have a .NET 3.5 WebForms App, which uses the ReportViewerControl in RemoteServer mode As our application uses a framework that needs SessionState (using SQL Persistence), it seems the the ReportViewer control also hooks into SessionState. RV's use of session state is problematic: it immediately takes an additional 9k of serialization (in dbo.ASPStateTempSessions) After displaying a report, all further

Hide a report item from print / export of an rdlc report

一笑奈何 提交于 2019-12-24 04:25:07
问题 I have an RDLC with multiple tables and for each table, I have a toggle TextBox Item that hides the corresponding table from the report. It works perfectly, however, I don't want these text boxes to be visible in the printed/exported reports. They are really meant for disabling content in the report and not as content themselves. Is there a way to hide those toggle boxes from only Print Layout and exported versions of the report? I looked at all of the properties of the report textbox and at

Check my SSRS report if it's empty from code

妖精的绣舞 提交于 2019-12-22 10:54:04
问题 I'm loading my reports that I have done using SSRS,by code(C#),but i need to check if report is empty or not!!! how can i get that?!! my code that Im using is: if (!string.IsNullOrEmpty(RptInstance.FileName)) { string ReportName = RptInstance.FileName.Replace(".rpt", ""); reportViewer.ServerReport.ReportPath = string.Format("{0}{1}", Settings.Default.ReportPath, ReportName); reportViewer.ServerReport.SetParameters(paramList); reportViewer.ServerReport.Timeout = Timeout; string mimeType,

How do I get page numbers to appear on rldc microsoft reports (local mode) when exported to pdf?

一笑奈何 提交于 2019-12-21 07:22:18
问题 I need the page numbers to appear on the pdf export of the report. I'm using reportviewer 9. Anyone know how to do this? Thanks, Isaac 回答1: What you have to do is make a page header, using Report->Page header Make a text box in it and put this in there =Globals.PageNumber & " of " & Globals.TotalPages 来源: https://stackoverflow.com/questions/4448549/how-do-i-get-page-numbers-to-appear-on-rldc-microsoft-reports-local-mode-when

Report viewer throws out of memory exception error while exporting to excel

微笑、不失礼 提交于 2019-12-11 17:24:37
问题 Out of memory exception thrown - I tried to export a large record from report viewer into excel in windows forms. I have applied grouping for page breaks since excel does not allow above 65535 rows. Below expression is used for Group On expression, =Int((RowNumber(Nothing))/10000) Page Break at end Checkbox is enabled for this grouping while exporting by clicking on the default export option available in report viewer control. But results in out of memory exception thrown. Am i doing right?

Report Viewer Doesn't Show report created with Sql Server Reporting Services

坚强是说给别人听的谎言 提交于 2019-12-11 14:53:22
问题 I created some reports in Sql Server Reporting Services, and deployed them in my local report server. When I type URL : http://MyreportServer/ReportServer in my browser I can see my deployed reports, and when clicks on reports links they will show correctly. In my web page I have a report viewer and set report server and report location for it to one of the deployed reports. When I run the project it does not show any thing and the report viewer seems to be disabled. How I can solve this

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