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

Print Preview Control settings not working

3 Answers 43 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 17 May 2016, 09:47 AM

Hello,

 

I'm using the PrintPreviewControl from the Telerik.Windows.Controls.Spreadsheet.Controls assembly in Silverlight.

However, the Print Settings, specifically the page orientation setting, does not seem to have any affect, with the setting from the browser's print dialog taking precedence instead.

Do I need to do something to handle this setting myself? Alternatively, is there a way to customise the PrintPreviewControl in order to hide some elements?

 

Thanks

3 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 19 May 2016, 08:57 AM
Hi Steve,

The printing settings RadSpreadsheet exposes control the way the visual which is sent to the printer will look. For example, if you set the page size to A3, the range of cells included in this visual will be larger. In Silverlight, there's no way to access the actual printer settings due to security limitations of the framework and indeed, the settings of the PrintDialog take precedence. In other words, to print to A3 paper (or with Landscape orientation), you need to specify this both for RadSpreadsheet in the print preview control and for the printer in the PrintDialog.

As to your question on modifying the preview control, you can extract and change the style of the PrintPreviewControl and remove any options you don't want to be visible. The attached application demonstrates how this can be achieved - it uses the Windows8 theme and our implicit theming mechanism.

I hope this helps.

Regards,
Petya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
John Tobin
Top achievements
Rank 1
answered on 15 Aug 2017, 11:20 AM

Hi,

I have the exact same problem but I am using WPF and not silverlight? Is this a problem for WPF too? I assumed it would be OK in WPF since it is possible with WPF to access the printer settings. Do you know why this would not work for me?

Thanks

0
Anna
Telerik team
answered on 18 Aug 2017, 08:15 AM
Hi,

Your assumption is correct, there is indeed no reason why this scenario would not be working for you in WPF. Could you please share your code with us to help us investigate further?

Looking forward to hearing from you.

Regards,
Anna
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Spreadsheet
Asked by
Steve
Top achievements
Rank 1
Answers by
Petya
Telerik team
John Tobin
Top achievements
Rank 1
Anna
Telerik team
Share this question
or