If I pass to the report viewer one report only, the page settings are respected and the report prints correctly. For a report book, the page settings are null, so when printing it doesn't know to print in landscape.
I really like your reportbook option, but frankly, with this problem, it really makes the option of using a report book unusable and sometimes subreports aren't a good option. I'm really hoping there's something I'm missing here, because otherwise, I have to set up individual reports where really only one report is wanted and needed.
18 Answers, 1 is accepted
You have not mentioned the most important thing - what is the report viewer you're using? For example the Silverlight report viewer native print has very limited API which does not allow to set the page orientation. This has to be done manually from the printer settings. To avoid this, switch to True printing by altering the UseNativePrinting property.
If the problem is somewhere else, please elaborate on your scenario.
Kind regards,
Steve
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
Below is the xaml and code behind from a test WPF project
Susan
Xaml
<
Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="clr-namespace:Telerik.ReportViewer.Wpf;assembly=Telerik.ReportViewer.Wpf"
Title="MainWindow" Height="300" Width="300" WindowState="Maximized">
<Grid>
<telerik:ReportViewer Name="reportViewer1"/>
</Grid>
</
Window>
Code Behind
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
using
System.Windows;
using
System.Windows.Controls;
using
System.Windows.Data;
using
System.Windows.Documents;
using
System.Windows.Input;
using
System.Windows.Media;
using
System.Windows.Media.Imaging;
using
System.Windows.Shapes;
using
Telerik.Reporting;
namespace
WpfApplication1
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
this.Loaded += new RoutedEventHandler(MainWindow_Loaded);
}
void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
ReportBook reportBook = new ReportBook();
reportBook.Reports.Add(
new ReportBookTest.Report1());
reportBook.Reports.Add(
new ReportBookTest.Report2());
//will have page settings
//this.reportViewer1.Report = new ReportBookTest.Report1();
//will not have page settings
this.reportViewer1.Report = reportBook;
 
 
}
}
}
Unfortunately you're correct and there is a bug logged in our system which I overlooked. I raised its priority and we would do our best to address it in the next version of the product.
Sorry for the temporary inconvenience.
All the best,
Steve
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
Susan
We have the same problem here during our evaluation of the telerik controls and reporting.
The bug is not fixed yet, but we would do our best to address it for the next release or subsequent internal build/service pack releases. In the meantime you can either print the reports separately via the PrintReport Method of the ReportProcessor class or export the report book to PDF and print from it.
Sorry for the temporary inconvenience.
Kind regards,
Steve
the Telerik team
Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.
is this fixed in Q3 release?
Kind Regards
Not yet, in major versions we work mainly on new functionality. We would look into the issue for the upcoming service packs.
Thank you for the patience.
Kind regards,
Steve
the Telerik team
Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!
I recently ran into this behavior as well, and just wanted to 'sign the list' for this to be made a priority.
Thanks for your time,
-Dane
Thank you for your time.
Just thought this might help some of you.
we have the same problem. We are using version 6.2.12.1025 of the reporting components. When will this issue be fixed?
Kind regards, Carsten
Please use the provided workaround until we address this problem.
Regards,
Steve
the Telerik team
HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!
Susan
Our intent and dedication to address existing problems has not changed, but sometimes our plans are subject to change due to other fixes/features and this is what caused the delay in addressing this particular issue. The good news is we're currently working on fixing it as we speak and it would be part of the Q3 2012 service pack that would be released early next year.
Thank you all for the understanding.
All the best,
Steve
the Telerik team
HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!
Thanks for any consideration on this issue.
Jeff
My previous reply is from Dec 18th 2012, stating that this would be fixed for the upcoming Q3 2012 service pack next week. The problem you talk about however does not seem to be the one discussed in this forum, as setting manually Landscape won't fix it. The problem in this thread appears only when you have a report book with reports with different layout (Portrait and LandScape). If your problem is different, please open a new thread and elaborate on your scenario.
Greetings,
Steve
the Telerik team
HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!