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

Reportbook page settings problem

18 Answers 240 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Susan Shaw
Top achievements
Rank 1
Susan Shaw asked on 22 Jul 2011, 06:42 PM
I have an issue with printing a report book.  All the reports in the reportbook have an orientation of landscape, however, when you go to print, it always prints out portrait.  Yes, I can go into the print dialog and change it manually to landscape, but I don't consider that a good option for my customers.

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

Sort by
0
Steve
Telerik team
answered on 25 Jul 2011, 01:59 PM
Hi Susan,

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!

0
Susan Shaw
Top achievements
Rank 1
answered on 25 Jul 2011, 04:06 PM
I guess it would help if you knew which report viewer I'm using.  I'm using the WPF report viewer, so the UseNativePrinting property isn't available.

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;

 

 

 

 

}

}

}



0
Steve
Telerik team
answered on 26 Jul 2011, 04:25 PM
Hello Susan,

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!

0
Susan Shaw
Top achievements
Rank 1
answered on 26 Jul 2011, 04:29 PM
Thanks...I look forward to hopefully having this fixed soon

Susan
0
Jan
Top achievements
Rank 2
answered on 19 Oct 2011, 09:33 AM
Anything new here?

We have the same problem here during our evaluation of the telerik controls and reporting.
0
Steve
Telerik team
answered on 24 Oct 2011, 12:25 PM
Hello Jan,

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.

0
ROSEN
Top achievements
Rank 1
answered on 22 Nov 2011, 11:07 AM
Hi,
is this fixed in Q3 release?

Kind Regards
0
Steve
Telerik team
answered on 23 Nov 2011, 04:06 PM
Hi Rosen,

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!

0
Dane
Top achievements
Rank 1
answered on 13 Apr 2012, 07:27 PM
Hello,

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
0
Susan Shaw
Top achievements
Rank 1
answered on 13 Apr 2012, 07:32 PM
My users brought this up again...it's becoming a pain point and it wastes a lot of paper since they forget they need to switch it to landscape manually.  Please please please fix this!

Thank you for your time.
0
Jan
Top achievements
Rank 2
answered on 11 Sep 2012, 02:18 PM
This was reported more than 12 months ago! What about a fix? Anything new?
0
Dane
Top achievements
Rank 1
answered on 11 Sep 2012, 05:40 PM
If I recall correctly, I got around this by converting the telerik report into a memory stream, generated a PDF from that and used a PDF viewer to handle displaying/printing/saving options.

Just thought this might help some of you.
0
Beister Software GmbH
Top achievements
Rank 1
answered on 13 Dec 2012, 01:42 PM
Hi,

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
0
Steve
Telerik team
answered on 13 Dec 2012, 03:53 PM
Hi guys,

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!

0
Susan Shaw
Top achievements
Rank 1
answered on 13 Dec 2012, 06:20 PM
This problem has been around for over a year now.  Will it ever be fixed?  I'm beginning to have my doubts.

Susan
0
Steve
Telerik team
answered on 18 Dec 2012, 02:40 PM
Hi guys,

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!

0
Jeff
Top achievements
Rank 1
answered on 03 Jan 2013, 01:19 PM
This thread has been around since 2011. I am on Q3 2012 and the setting the landscape to true on the pagesettings object still doesn't work! Is there any hope of having this fixed? I am using reportbooks as well. Everything else works great, but can't have users manually setting this everytime they want to print. I would set this to the highest priority even above new functionality. I am using VS 2010 .net framework 4.0 and WPF

Thanks for any consideration on this issue.
Jeff
0
Steve
Telerik team
answered on 03 Jan 2013, 01:30 PM
Hello 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!

Tags
General Discussions
Asked by
Susan Shaw
Top achievements
Rank 1
Answers by
Steve
Telerik team
Susan Shaw
Top achievements
Rank 1
Jan
Top achievements
Rank 2
ROSEN
Top achievements
Rank 1
Dane
Top achievements
Rank 1
Beister Software GmbH
Top achievements
Rank 1
Jeff
Top achievements
Rank 1
Share this question
or