How to make RDLC report two column - report

I have a simple report which is supposed to be used for printing stickers. The sticker paper is A4 size and it has two columns. I successfully managed to print data to left column. I also want to print data to right column too. My current report looks like this :
[Title]
[NameLastName]
[Address]
How can I make my report to fill data to two columns? Thanks.
EDIT :
I have generated another column as suggested in other questions. But the result is still one column, Can anyone tell me the next step?

The simplest way to do it [I think] is to:
add additional "columnNumber" column and make it "1" for, say, all odd rows and "2" for all even rows.
then place two tables side by side and make the same DataSetName property for both of them
then filter the data in each table based on the columnNumber Value (add Filter to Filters property of the table)

Related

How to export dataset elements from Birt to .docx as numbered list

I have a birt report which contains numbered list of questions. It built with some dataset elements + label (text).
But after exporting it to .docx numbers usually merge with the text (as a part of text). I need it to be splitted out of the text (as the formatted numbered list in MS Word).
What can I do?
I expect of splitted numberes and question text
As I said in my comment, I doubt this is possible.
If you can live with a different structure that more or less has the same properties regarding visual appearance and editability (does that word exist?), what I do is:
Use something like a RUNNINGCOUNT aggregate to generate the item numbers.
Use a two-column table to render the ordered list: Left column contains the number, right column contains the text.
This takes care of the visual appearance.
To insert items inbetween manually later, one can insert a row into the table, but it's necessary to re-number the following items manually.

How to shift rows down based on value in column R?

I have a data frame that looks kind of like this...but much larger
I want to look at the record_id column and shift the right side columns down when the row says admin_time. Then make that previous row NA. Then when I write it to a csv, I'll just use the na = "" to make those cells blank
For example, in the first few rows, it would look like this...
No need to try to recreate the data frame. I was thinking maybe a for loop would work with an embedded if statement to review the patient_id, record_id, and pk_day. I was just looking for alternate suggestions or how to use a statement within the loop to pick out the admin line and do what I mentioned above

limit Column number in Matrix using RDLC

I hope you will understand me :)
I'm using RDLC report and using Matrix table, but I dont know how to limit number of Columns in Matrix, I need only 5 Columns on each Matrix table.
What I want looks like:
image is here
The data in each table are different from the other tables.
Columns are defined manually in rdlc table. If you are generating then dinamically, maybe you are are grouping tables. If that is the case then the logic to define a max columns(groups) is in the method that generates de table datasource

BIRT report: dynamically adding columns to a table based on dataset data

In my report, a table is displaying results from a dataset and it has 6 columns.
But sometimes the dataset returns more than 6 columns depending on the report parameters.
So I need a way to dynamically add columns to my table
Thanks
I'd do it the other way round.
The number of the columns in the query is fixed anyway (for example: FIXED_A, FIXED_B, DYNCOL01, ..., DYNCOL20).
In the layout, your table should have columns for all columns (FIXED_A to DYN_COL20).
Clear the table's width. Set a fixed width for the fixed columns (with enough room left for the dynamic columns). Clear the width of all dynamic columns.
From now on, do not resize and column with the mouse, because this would set individual widths for each column again.
In your table properties, add aggregate bindings for each DYN_COLnn using the MAXIMUM function (let's call these MAX_COL01, ..., MAX_COL20).
For each columns, use a visibility expression like this (the number matching the layout column to the query column accordingly), e.g. for the first dynamic column:
!!row["MAX_COL01"]]
The !! means basically: interprete this as boolean, so the result is: show this column only if MAX_COL01 is not null - or in other words: if DYN_COL1 is not empty in any of the rows.

Excel - I get an error when I try to add a column

We get an excel worksheet from a customer and there is a data discrepancy with one of the col. the item description they send. We want to programmatically open the document lookup the table using item column, and then write a new column with the item description from the table (on SQLSever) that part of getting the data is fine but how to create such a new column is where I am stumped. writing in asp.net but open to however it can be done
I am getting this error when trying to insert a column:
To prevent possible loss of data, Excel cannot shift nonblank cells
off of the worksheet. Select another location in which to insert new
cells, or delete data from the end of your worksheet.
If you do not have data in cells that can be shifted off of the
worksheet, you can reset which cells Excel considers nonblank. To do
this, press CTRL+End to locate the last nonblank cell on the
worksheet. Delete this cell and all cells between it and the last row
and column of your data then save.
This problem is not linked to your code, it happens when you have data on the last column (and so Excel do not want you to loose it).
Yet, the trick is Excel considers that any style is the same as data. So, if you have ever defined a style on the whole row, inserting a column may cause this error.
Let me give an example to explain it more:
Create a new Excel workbook
Select the whole first row
Paint it in Yellow (or whatever color)
Select cells from A1 to E1
Paint them in white
Try to insert a new column before B
You get the error because Excel does consider that you wanted to define a specific style to the last cell so you would loose this information if you inserted a new column
Have a look at your file to solve this issue (IMHO, defining style on a whole row is a bad practice because it could cause this kind of error).
Yeah I often get this annoying bug bothering me.
To avoid this behavior in Excel 2007, what you do is you go to the end of your data with CTRL+end.
Then you go one cell down (or one cell right if you are at the bottom), and copy this cell ( CTRL+c), that should be blank, since your outside your data.
Then go back to the place where you (not that stupid Excel) consider your data should stop, while holding the shift key, and paste it (CTRL+v).
After this you should be able to insert that column.

Resources