I need to change source in rdlc report - c#

I made an rdlc report before and now I increased two columns in database table. These two columns are not showing in report, what should I do?

In the Report Data Window, refresh the Dataset. new fields will be available in the dataset and you may need to add new fields to your report accordingly

Related

divide one columns into several columns rdlc report

I need to show one columns data on multi columns in RDLC report
like
'
Under the properties of the report, you can specify the number of colums desired in the body of the report. This will then allow the data to flow from one column to the next. I used the matrix table, and it worked perfectly.

DataGridView with dynamic columns to RDLC report

I'm trying to print a report (RDLC) that contain the same data presents in a dataGridView.
This is the DGV:
The first 3 columns are static, the others one are dynamic. This DGV is loaded from a DataTablethat I create from a series of Query.
What i would like to do is print this table using the same DataTable.
This is what I've already tried:
I tried with Matrix table in RDLC using my query and it works ok but the query only returns rows with data, so for the first row it only print 36-12,20 and 38-12,50. The query is quite complex.
I've tried to create a DataTable with the same columns of the DGV's one to use in the creation of the reports. I can create the report with this but nothing is printed because my column's name doesn't match with the one in the original table (They're dynamic so...)
I tought i could also create a dummy db table with all the data I need with fixed columns (let's say max 20) and than just use that to create my report, not really a fan of this approach.
Any clue?

FastReport custom object as Datasource

I developed a simple print report in FastReport to print some details in table object.
Now I want to let my users to design and adjust their print report so I store report XML in database and load in FastReport Designer to user.
now to bind information in table.
We must add datasource in designer from database only and after that a connection is open and select all records to user and ...
My problem is that I want to use Custom Entity Object as Datasource for report not database table. How can I do that?
So if possible when the user opens report designer he can adjust column remove or add and drag new columns from datasource to report table and when save that report.
I run print by passing list to RegisterData function of report and it is ok.
You can pass list of any objects to the RegisterData method, look at the DataFromBusinessObject example.

Generate RDLC Report with two columns

I need to build a report (.RDLC in visual studio 2012) that contais a long text in two columns by page.
I can't just add a new column in the report, because the content above of this long text will be dynamically, so, this control (to fill the text in the second column) must be dynamically too.
Also, i need to add others parts of the report after the text ends.
Somebody knows how to do this?

Combine two datasets in one Crystal Report

I want to create a type of Summary report for an account. The report should have a chart of account data from one data source AND a grid of different account data from another data source.
I want to use all of the data from table one where account_ID = X AND I want to use all of the data from table two where account_ID = x.
Crystal Reports will let me add two different datasources, but It wants to link them to create a sub report in a Master / Details kind of way. I need to report on ALL of the data in table one, and all of the data in table two.
I'm a bit confused on how to do that.
Note: When I'm doing this for one report only, I just create a datatable from a view filtered by the account_ID and then set that as the datasource for the report. That way the heavy lifting is done before Crystal Reports gets the data. Again, not sure how to do that for two different datasources.
If the datasets are different enough that a JOIN doesn't make sense, you'll want to use a sub-report. First, create the report as if you were only using one of the data sets. Then, insert a sub-report where you want the second grid to show up (go to Insert --> Subreport); usually putting it in a new section. Build the sub-report using only the second dataset -- it may help to think of it as a full report in itself, as if the main report didn't exist.
Right-click the sub-report "field" in the main report and select Change Subreport Links. Add the account_ID field and you'll automatically get a parameter, Pm-Table.account-ID, and basic select expert in the sub-report itself.
Double-click it, and you'll get a new tab for just the sub-report. In the long run, you'll want most of the sections suppressed, so the output is just the grid.
Once all that is done, running the main report will display both sets of results.

Categories

Resources