This is a migrated thread and some comments may be shown as answers.

multiple columns in report

8 Answers 682 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 26 Jun 2009, 04:44 AM
Hi,

It seems it should be so simple to get multiple columns in a report

The online demo at

http://demos.telerik.com/reporting/examples/producttags/defaultcs.aspx

supposedly shows multiple columns but I can't see any.

I have created the simplest report I can think of, ie a text box in the heading & text box in the detail.
The text box in the detail is 2 cm wide & the report width is set to 6 cm so no overlaps as per tutorial suggestion so I would expect to get at least 2 columns on the page (yes the number of columns is set to 2)

I cannot get it to print multiple columns.

Any suggestions?

Thanks,

Andreas




8 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 26 Jun 2009, 11:13 AM
Hi Andreas,

This has already been elaborated on in a few other threads and explained in our help documentation:
i.e. html and excel are not page oriented formats and do not support multicolumns. However if you export/print (print from a web report viewer is internally exported pdf file printed through adobe's pdf plugin) in a page oriented format, you would be able to see the multi-column report.
Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Andreas
Top achievements
Rank 1
answered on 26 Jun 2009, 12:22 PM
Hi

Thanks for the reply.

I should have been clearer in stating that this is not a web application, ie its a wpf application with the report being rendered in the windows forms report viewer, anyway I will have another look at the suggested links.
I would have expected that the forms report viewer would render multi column as well as reports printed using the print function on the report viewer.

However, in retrospect I presume the online demo report does not render multi column since it is presented using html.

Andreas

0
Andreas
Top achievements
Rank 1
answered on 27 Jun 2009, 05:18 AM
Given a multi column report with a suitable datasource providing enough rows would it be expected that the preview tab in the report designer in VS would render in multiple columns?
0
Steve
Telerik team
answered on 27 Jun 2009, 08:34 AM
Hi Andreas,

The datasource is not related to whether the report would be multicolumn or not - as noted in the Creating Multi-Column Reports article, this all depends on the ColumnCount property and the width of the detail section i.e. whether there is space enough to fit the desired number of columns. However, you can always alter the page width from the PageSettings property of the report.

All the best,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Andreas
Top achievements
Rank 1
answered on 27 Jun 2009, 08:43 AM
Hi Steve,

I appreciate the datasource does not have anything directly to do with multiple columns, all I was trying to say was the datasource I am using supplies sufficient number of rows to ensure that more than one column would be produced, ie I get multiple pages.

The links supplied were what I used as a guide to originally attempt to create a multiple column report from.

Can I expect to see multiple columns rendered in the preview tab on the report designer in VS?

Even if I export as pdf from the report viewer I still cannot get multiple columns.

No doubt I am doing something stupid.... I just don't see what.

Thanks,

Andreas
0
Steve
Telerik team
answered on 27 Jun 2009, 09:08 AM
Hi Andreas,

If the report does not render the number of columns set in ColumnCount, it is likely due to either the report width being too large or an item in the detail section is too large. Check for report items that are greater than the width of the report. If you increase the width/height of a certain report item manually through the property grid directly, the container wrapping this item would not shrink/expand with it as this is handled only when working through the designer.
As you can see from our online demo report here, exporting to pdf does export the data in multiple columns.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Amrita Mandal
Top achievements
Rank 1
answered on 02 Feb 2010, 03:57 AM
Hi

I am trying to make a multi-column report. And my data gets distributed in multiple pages.Though i have fixed the column count to 3.Please suggest.My telerik report width is 30mm.In no ways i am getting 3 columns in a single page.Also from backend i am binding a single column.Please suggest something if this could be a problem.

Thanks
Amrita
0
Steve
Telerik team
answered on 02 Feb 2010, 08:07 AM
Hi Amrita,

Do you include the page margins in your calculations? The column width can be calculated as:  Page width minus sum of left and right margins minus ColumnSpacing * (ColumnCount - 1). The result should be divided to the ColumnCount.
For a three column report, please review our Product Tags demo report from the Visual Studio examples installed along with Telerik Reporting.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Andreas
Top achievements
Rank 1
Answers by
Steve
Telerik team
Andreas
Top achievements
Rank 1
Amrita Mandal
Top achievements
Rank 1
Share this question
or