reporting

How can I load datatable as ReportDataSource?

独自空忆成欢 提交于 2019-12-17 19:52:54
问题 I am trying to do something like: this.reportViewer.LocalReport.DataSources.Clear(); DataTable dt = new DataTable(); dt = this.inputValuesTableAdapter.GetData(); Microsoft.Reporting.WinForms.ReportDataSource rprtDTSource = new Microsoft.Reporting.WinForms.ReportDataSource(); rprtDTSource = dt; // this line generates exception //this.reportViewer.LocalReport.DataSources.Add(rprtDTSource); this.reportViewer.RefreshReport(); How can I load datatable as ReportDataSource? The current code produces

How to pass textbox/Combobox value to rdlc report text field?

安稳与你 提交于 2019-12-17 16:50:29
问题 c#, mysql in my project. In that i create a rdlc report. I dont know to pass winform textbox value to rdlc report text field. I googled and try some set of code. but cant get that. If you worked in report. please help me. My requirement is,.. I am doing college project. In that they asked bonafide certificate. So i create a winform With reportviwer, name, course, year, semester, academic year, purpose textboxs and one button. Click the button when the textboxes are filled. those text values

An error occurred during report processing. -RLDC reporting in ASP.NET MVC

旧时模样 提交于 2019-12-17 05:13:39
问题 I have this action to generate reports : public ActionResult Report(string id) { LocalReport lr = new LocalReport(); string path = Path.Combine(Server.MapPath("~/Report"), "Person.rdlc"); if (System.IO.File.Exists(path)) { lr.ReportPath = path; } else { return View("Index"); } List<Person> cm = new List<Person>(); var viewModel = new PersonIndexData(); viewModel.People= db.Person .Include(k => k.Groups) .OrderBy(k => k.Name); cm = viewModel.People.ToList(); ReportDataSource rd = new

Programmatically Insert Page Break in ActiveReports

时光总嘲笑我的痴心妄想 提交于 2019-12-14 03:47:00
问题 I've been scouring the web for a good example, but cannot figure out how to add a page break to an ActiveReports report programmatically. The reports I'm working with usually require 1-2 pages for each record. In order to support dual-sided printing of the reports I want to insert a blank page for each record that uses an odd number of pages, ensuring that each new record is printed on the front of each printed page. I'm very new to ActiveReports, so any suggestions, code samples, or links

Adding Sum of fields of two tables giving strange result in Crystal Report

泄露秘密 提交于 2019-12-14 03:13:56
问题 I am using SAP crystal reports for Visual studio. I have two tables (TableA, TableB). with fields PriceA, PriceB. TableA Field : PriceA ={20,40,40}; TableB Field : PriceB ={50.40,60}; I have created a formula in my main report Formula1 = Sum(TableA.PriceA) + Sum(TableB.PriceB) But instead of getting result as @Formula1 =250. It is giving the incorrect result like '1050' (not exact). How can i get a correct result in this case. 回答1: I would suggest inserting a summary of each field (right

Local vs Global temp tables - When to use what?

末鹿安然 提交于 2019-12-13 17:27:21
问题 I have a report which on execution connects to the database with my_report_user username. There can be many end-users of the report. And in each execution a new connection to the database will be made with my_report_user (there is no connection pooling) I have a result set which I think can just be created once (may be on the first run of the report) and other report executions can just reuse that stuff. Basically each report execution should check whether this result set (stored as temp

.Net Template Engine/Report Solution [closed]

大城市里の小女人 提交于 2019-12-13 16:35:39
问题 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 4 years ago . I am looking to add custom reports/forms to a web application. I want users to be able to upload a report definition/template file and then be able to print out a PDF or word document (one or the other it doesn't need to be both) for each of their widgets based off of the template they uploaded. I can't install

How to show the Heading of a Sub-Report on each page?

假装没事ソ 提交于 2019-12-13 15:14:08
问题 What property do i need to set in the C1Report Designer to display the heading of my sub report on each new page. Repeat = true With that property set, the sub report does not show the heading on each new page. It does work fine for the Main Report tho. 回答1: You need to add a Grouping on the primary key field for the sub-report. Then check the header and footer section. Then set the repeat = true for the header and footer section. 来源: https://stackoverflow.com/questions/5431497/how-to-show

Displaying Time in Reporting Services 2008

て烟熏妆下的殇ゞ 提交于 2019-12-13 14:34:31
问题 I have a table in my report, where I have columns of datatype Time(7) . Now I have problems formatting them correctly in Reporting Services 2008. If I set the format of the expression to HH:mm it does still display 11:12:000 ! I want to get only the hours and minutes! like 11:12 It looks like RS does not know the format. None of the following does work: =Hour(Fields!MyTime.Value) =CDate(Fields!MyTime.Value) Both throw an error. I think it propably does format it as plain text? Thanks for your

youtube reporting api error 500 internal error

南笙酒味 提交于 2019-12-13 09:34:10
问题 after few moonths using youtube reporting api from a C# console app to download reports as content manager, today I am receiving code 500 error (Internal error). Nothing has changed in the relevant code, and everything always went smoothly before. I am receiving the same error in Google API's Explorer. 回答1: The YouTube API Reporting service was out of service. I just have to wait for a few hours and everything was working fine again 来源: https://stackoverflow.com/questions/46304884/youtube