rdlc

Compile rdlc in VS2013 - error Native compiler return value: '-1073741511'

断了今生、忘了曾经 提交于 2019-12-23 03:34:08
问题 After installing Visual Studio 2015 I am not longer able compile my rdlc (report) file even in VS2013 - where it used to compile without error. I getting the following error: An unexpected error occurred while compiling expressions. Native compiler return value: ‘-1073741511’. Through trial an error I have found that removing expressions like =IIf(IsNothing(First(Fields!ActualQuantity.Value, "DataSet1")),"",First(Fields!ActualQuantity.Value, "DataSet1")) and ="Generated from website " +

Render html code in sql server client report (rdlc)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 17:58:11
问题 I am using the asp.net web application and microsoft visual studio reportviewer control and rdlc for creating a report ( not using sql server reporting). I used the Product table to view the result. It has five fields and I display all the itemsin the report. One field is Description and it store the html code as the value(eg: <div><ul><li>a</li><li>b</li></ul><b>aaaa</b></div> ). I want to disply the output of this html code in my report's description field. But in my report, it shows the

Localization of Reporting Services-Reports (.rdl / .rdlc-Files)

强颜欢笑 提交于 2019-12-22 09:43:27
问题 i need to localize a Reporting Services-report (.rdlc) and i would like to do it using a ressource-file (.resx). I found pages like this and that and they use custom code to achieve their target. But pages like Setting the Report Language Parameter in a URL give me the impression that localization in reports is possible without custom code. So, it is possible to localize a Reporting Services-report without custom code ? If so, is there a tutorial that explains how it's done? 回答1: What in the

How to select all fields plus some new fields in LINQ?

回眸只為那壹抹淺笑 提交于 2019-12-22 06:32:02
问题 I got an RDLC report Date Format stored in SQL DB is Georgian. I want to Display date in report as Persian. Using Linq i want to select all fields of DB in addition some new field to be used as Persian Date Fields. I used below syntax: var invoices = from invoice in dbContext.eve_Invoices select new { invoice.CreatorID, invoice.DateChange, invoice.DateCreation, invoice.DatePrint, invoice.Discount, invoice.DiscountPercentage, invoice.DiscountType, invoice.Fare, invoice.ID, invoice

MSBuild Using Wrong Version of Assembly to Compile RDLC File

巧了我就是萌 提交于 2019-12-22 02:21:05
问题 I am using the reportviewer control from VS 2010 to create client side reports (rdlc). Everything is working fine on my development machine, and when I manually compile (via VS2010) and manually deploy to a test machine that doesn't have development tools installed. In order to get the test machine to work (without installing VS2010 or ReportViewer.exe), I had to add references in my project to Microsoft.ReportViewer.Winforms, Microsoft.ReportViewer.Common and Microsoft.ReportViewer

External images in .rdlc data reports for winforms

孤街醉人 提交于 2019-12-21 21:59:03
问题 I searched Google for days to show images on .rdlc datareports but still not found a solution. I have set: reportViewer1.LocalReport.EnableExternalImages = true; Image properties to "External" and have set parameters value to the value property. ReportParameter Path; Path = new ReportParameter("Path", "C:\\Test\\579569.png"); this.reportViewer1.LocalReport.SetParameters(new ReportParameter[] { Path }); But still i get a broken image. Is there something i am missing.I am trying this in

View RDLC Report as pdf in Asp.net MVC

时光总嘲笑我的痴心妄想 提交于 2019-12-21 20:33:59
问题 I am facing problem in last two days. I am trying to view rdlc report as pdf without reportviewer. I export rdlc to pdf using the following code... public string Export(LocalReport rpt, string filePath) { string ack = ""; try { Warning[] warnings; string[] streamids; string mimeType; string encoding; string extension; byte[] bytes = rpt.Render("PDF", null, out mimeType, out encoding, out extension, out streamids, out warnings); using (FileStream stream = File.OpenWrite(filePath)) { stream

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

Binding an rdlc report with a business object

[亡魂溺海] 提交于 2019-12-21 06:51:56
问题 Is it possible to bind a rdlc report to a business object (.NET 4/VS 2010) In my report I have TextBoxes called Name and Email. Say I have an object Person with properties Name and Email. Can I bind the .rdlc with an object Person at runtime? 回答1: Yes it is, just create a new ReportDataSource: var people = new List<Person>(); var reportDataSource = new Microsoft.Reporting.WebForms.ReportDataSource {Name = "DataSet1", Value = people}; var report = new Microsoft.Reporting.WebForms.LocalReport()

ReportViewer - modify toolbar?

左心房为你撑大大i 提交于 2019-12-20 15:25:16
问题 Do anyone have good ideas of how to modify the toolbar for the WinForms version of the ReportViewer Toolbar? That is, I want to remove some buttons and varius, but it looks like the solution is to create a brand new toolbar instead of modifying the one that is there. Like, I had to remove export to excel, and did it this way: // Disable excel export foreach (RenderingExtension extension in lr.ListRenderingExtensions()) { if (extension.Name == "Excel") { //extension.Visible = false; //