rdlc

Build of project with RDLC cannot find custom assembly

烂漫一生 提交于 2019-12-18 15:18:10
问题 I've been tearing my hair out for three days trying to get an RDLC report to build in VS2010. I want to access a custom assembly from another project in the same solution in an expression for a Text item on a subreport. There is a reference to the assembly in the project containing the RDLC and I added a reference to the assembly DLL in the properties of the subreport, but when I build it I get an error telling me it cannot find the file: Error while loading code module: ‘CCCArchive, Version

How can I use RDLC reports with the ReportViewer Control in ASP.Net MVC?

爱⌒轻易说出口 提交于 2019-12-18 13:32:15
问题 I am fairly new to ASP.Net MVC. I have a requirement of showing an RDLC based report in MVC. Basically my requirement as well as what I have done is :- I have a ReportController inheriting APIController, which has a method that returns a DataSet. This DataSet is being sent to the RDLC file. For this, I have done the following, but could not make the report work. I have created a model class named ReportParameter as follows: public class ReportParameter { public DateTime DateFrom { get; set; }

RDLC - Adding a Data Source in VS2010

允我心安 提交于 2019-12-18 10:45:10
问题 Greetings. I have an RDLC file and am wanting to add a data source to it, although without any luck so far. The data source is a custom class written by myself (just to add, we do this all the time). We recently converted over to the VS2010 RDLC format which caused some problems, but we've made some changes to our implementation that workaround the more major issues. So, back to the issue at hand, when I attempt to add my data source to the DummyDataSource list in the RDLC view in VS2010 it

How to find and replace a specific word in string?

杀马特。学长 韩版系。学妹 提交于 2019-12-18 09:38:55
问题 I just want to replace a particular text with blank space in RDLC column. I want to replace .aspx with "" in every string. I tried writing =Replace(Fields!AuditsUserActivity.Value, ".aspx", "") it works for this kinda lines Page Applicants.aspx viewed but not for these kinda lines: Data added in Inspectors.aspx i.e. it removed .aspx from those lines in which .aspx appears in in-between but not for those in which .aspx appears at the end of string. WHY ? Update: I used this but not working

Report Viewer - Setting the decimal places for a textbox value

孤者浪人 提交于 2019-12-18 09:01:57
问题 I'm using Report Viewer Control (rdlc) to generate reports. One of my columns have the value =AVG(Fields!Reading.Value, "CellReading_Reading") I'm getting the value with 10 or more decimal places. But i want to round it off to 3 decimal places. What is the expression for doing this? Thank you. NLV 回答1: FormatNumber(AVG(Fields!Reading.Value, "CellReading_Reading"),3) 回答2: Right-click the textbox Click the number Select number from the category Set Decimal Places to 0 回答3: cdonner's answer was

RDLC LocalReport Export to Excel really slow

旧街凉风 提交于 2019-12-18 07:06:34
问题 We have an Asp.Net page running a RDLC Local report against an Oracle database in the backend, which is ridiculously slow when exporting to an Excel spreadsheet. I've done some investigation and established that the query itself shouldn't be to blame - I can run the query directly against Oracle using SQL Developer and export the results to Excel in around 5 seconds, yet when I run it via the asp.net page and the ReportViewer control it takes about 3 minutes to return. Does anyone have any

Base64 image doesn't display on Render PDF from RDLC report

放肆的年华 提交于 2019-12-18 05:43:42
问题 I'm trying to display image(base64 string) using parameter( @CustomerSign ) in RDLC report (I'm rendering PDF file from report and I'm seeing PDF file) I've configured image property as below: Select the image source : Database Use this field : =Convert.FromBase64String(Parameters!CustomerSign.Value) Use this MIME type: image/png And passing parameter: ReportParameter CustomerSign = new ReportParameter("CustomerSign", obj.SignImage); rptvw.LocalReport.SetParameters(CustomerSign); But the

How to page break after specific row(Suppose 25 rows) in rdlc reporting

血红的双手。 提交于 2019-12-17 23:31:06
问题 How to page break after Specific rows (like 15 rows) in rdlc reporting. 回答1: It's so easy.Suppose My reports looks like Enable advance mode Add a group for page break Define the number of rows what do you want in the group expression(In this case i want 15 rows) Delete group column if you not need Delete Expression from Group details Select Group Properties and set page break attribute breakLocation as End,Disables as false and RestPageNumber as fasle. Select Group Details Properties and Set

Print RDLC Report without showing ReportViewer Control

霸气de小男生 提交于 2019-12-17 17:22:27
问题 I was wondering if is possible to send/print data from DataGridView directly to rdlc report without binding it to ReportViewer control. There are many threads about binding dgv data to report viewer control. I don't want to create another form with report viewer control, but use existing form with data on DataGridView and on print button to send the data to RDLC report and print it. Is it possible? Thanks 回答1: Print without showing Print dialog As an option you can print an RDLC report

Modify dynamically a rdlc report (c#)

不问归期 提交于 2019-12-14 03:59:39
问题 I have a font stored in a database, and I have to set all my fileds with that font. I set bind my report like this : FormBudgReelReport form = new FormBudgReelReport(); form.Viewer.LocalReport.ReportEmbeddedResource = _NomRessourceRpt; form.Viewer.LocalReport.DataSources.Add(source); form.ShowDialog(); If I could load my rdlc as an XmlDocument, I know how to do this, but is there a way to do this? I can't use a formula like =Parameters!Police.Value because I have a lot of reports to change.