Print RDLC report across multiple columns (newspaper format) - c#

I am trying to create an RDLC report in a newspaper like 2 column format. This is my first venture into RDLC report and I am an absolute noob here.
I have tried to follow the instructions here
How can generate RDLC report on two columns?
but still my report shows up in one single column. I have decreased my font so that there is plenty of space for both columns to fit, but still the report body content never spills over to the second column
Some other forums tell to use a filter variable to display odd rows on the left and even rows on the right, and so on, but I cannot use that approach because the client requirement is that the second column will only be used if the first column is filled.
I am attaching a screenshot of my first version RDLC design.
I am also attaching a screenshot of the report format that is actually required see bellow.

You have this wast "white space" around your table which still counts for "used" space. This could be one of the things that makes RDLC "push" what is can to the second page. The things to do is to:
Reduce report size (in designer) to the table size with no white space
Set report size and margins in Report Properties window:
Look at Columns and ColumnSpacing properties of your report as per:
.rdlc report: text on page in two columns

Related

How to set a min width before word-wrap inside an Asp.net Grid View column iif that columns text is at least certain length. ex 50 words

...without knowing how many columns the grid view may have or which columns will contain a lot of text. (Auto resize all other columns)
I have a grid view on a webpage that is generated from a database and it displays different columns in different orders depending on the user or user groups. Typically, it is displaying somewhere between 15 and 30 columns. For some user/user groups all of the columns can fit on the screen without any text wrapping too much, for others even after the grid view auto sizes all of the columns to be as small as possible it doesn’t all fit on the screen requiring a horizontal scroll bar and it’s then forcing the columns with large amount of text to wrap after only one or two words.
I am trying to figure out if there is a way to stop a column from resizing to a tiny size if its content is really long and instead wrap only after a certain size (assuming that the content of that column is large enough to require the column to be that “certain size” to begin with) however I can’t know which column is going to have a ton of words since each user / user group can modify which columns they use, which are displayed, and what each column is called. (So I can’t hard code a specific column to be a minimum/specific width)
Example
If for example a column has text that is long than say, 50 words, I want to set that column to only word wrap after at least 4 or 5 words have already been displayed on the first line (or a certain pixel size) But if a column is smaller than that I want the column to become as small as possible so that as many rows / columns can be visible on the screen as possible. I don’t mind the horizontal scroll but I am trying to get the wrapped text to not wrap more than 5 or so lines. (Currently it’s wrapping like 15-30 lines leaving 1 -2 words on a line)
Example – What I want
UserGroup1
This is what I would like to happen (The column with the long text is kept large enough to read multiple words before wrapping
Example -- What I’m currently getting
UserGroup1 (This only happens to users groups who have a ton of columns, other user groups are able to fit everything on the screen without ridiculous word wrap)
Example of what I'm currently getting -- Row with lots of columns is word wrapping every word or two causing the row to take up ton of space on the site. (Made image a bit smaller since its so tall)
This User/User group also has so many columns set to display that it has a horizontal scroll making it difficult for users to get to easily read the data.
Additional Example
Example of a different user group who has less columns and a different order.
Description
This is an example of a different user/user groups gridview display. This user/user group has chosen to have a lot less columns and all of the columns have no problem fitting on the page. This gridview does not have a horizontal scroll bar and already wraps nicely due to less columns.
This grid view automatically resizes the smaller columns and makes the column with more data bigger because it doesn’t need to try to fit a ton of columns on the page. This example is similar to the "What I want" example, except it has less columns so the description column is wider.

MS Reports rdlc c# win forms multiple columns

I am trying to create a Report with two columns.
Records should add in as below...
1.Bob 6.Sarch
2.Sue 7.Barrie
3.Adam 8.James
4.Dave 9.Steve
5.Robin 10.Euan
11.Fred
12.Heidi
13.Liz
For the first column (1-5 in this example), a page break should wrap the data to the second column (6-10). After the second column is full (11-13) the the data should page wrap.
The data used to generate the report will have a fixed number of columns. The height and width required for the data will not change.
I am using with C#, WinForms, .net4. I have tried several various approaches with no success. Thus far I have only managed
1.Bob 2.Sue
3.Adam...
Please help or point me in the right direction :-)
Many Thanks
TL;DR ---> This isn't possible with SSRS, afaik.
If I understand correctly, you want to list the items in a data set, that when rendered with a hard page break renderer will render with these requirements:
items are added vertically as long as there's space on the page
a new column of items is started when the first column ran out of space, vertically
a page break is inserted when the second column filled up the vertical space, thus starting a new, first column on a new page
Now, there's only these controls in SSRS:
Textbox
Table, Matrix
Chart
Gauge
List
Image
Subreport
Line, Rectangle
Out of these only the Tablix (Table/Matrix) and List are remotely capable of such a thing, but they can't satisfy your requirements. I'm afraid the answer to your question is that this can't be (easily) done.
The hard way that this may still be possible is perhaps by creating a custom report item and/or by creating a custom rendering extension. But that may be overkill for just wanting to create a nice little list.

How to reduce Table Font Size in RDLC Report?

I am using Winform, C#, Mysql in Project.
In that i add one RDLC report. and created table. its have more then 35 columns. So table very large. I make strech in the table. But till the table long. So i deside to reduce the Font Size of the Table.
So that i change the Tablex Font 10pt to 5pt. But Nothing Change.
When I take a PDF Format. It Split Two page. Is not A good Format Report Na.
So Pls Help me....
The font of the table doesn't appear to change cells that already exist. Click the grey bar on the left of the table to select an entire row (for example, the one with three lines changes the detail row) and change the font there. All the cells in that row will have their font changed.

How to print a table of generated images in C#

I need to print a set of generated images in a table like structure with headings. These heading and images are never displayed on the screen. The images are generate QR codes for a series of URLS so they can easier be read in by a scanner. There need to be a header on each column and a text id field on each row but apart from that the rows would be 4-6 columns of QR codes (2d barcode).
I have found samples for printing images and samples for printing text and even a sample to print a datagrid shown on the screen but nothing for printing text and images in a table like structure. Could anyone help me out with a basic example. The table is expected to go over multiple pages vertically so I would also need to put the heading row on each page.
Even pointing me in the right direction would be useful.
This is for a windows application where I want to have code kick off a print job with no user interaction. Using dotnet 4.0.
See my method for creating and printing FixedDocument here including source code. This method will easily allow you to generate aligned tables with images and text and save them as XPS or print them to a printer.

Covering Subreport with Text Object PROBLEM

What can I do for subreport so that When i click on it, it won't appear on the seperate page?
I actually found a way but it is really ugly and not convenient for long reports.
My way is that.. I cover the subreport with a text object. And extends the length of text object depends on how many rows the subreport have.
It is work fine till some time.
For eg, My report has over 100 rows. If i only show up to 90 rows, it is ok. If i show over 90 rows, the error message pop up.alt text http://www.freeimagehosting.net/uploads/a47646b658.jpg
I think the length of the text cannot follow up.
Could anybody tell me why?
The reason is the height of a section is limited to 32K. So more than that, there will be an error.
If there is 2 reports, then one of them should be a short one.
Make it a sub report and cover with the text object.
Make sure that it won't be over 32K of length.

Categories