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

Problems and enhancements for the WPF report viewer

5 Answers 123 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 26 Oct 2014, 05:58 AM

Hello,
here is a list of problems I find with the WPF report viewer and some possible enhancements:

1. In the print preview mode, when the zoom is set to ”Whole page”, the code calculates a zoom factor. Doing so, it makes a round of the value, instead of a ceiling. The result is that, depending on the size of the window, there are sometimes a scroller that is shown and active. For example, if the zoom to display the whole page is 108.4%, it is displayed with a zoom of 108% and the scroller appears.

2. The whole control is enclosed in a border. In the case the control is displayed in a window, and only it is in the window, this border should not be there: please add an option to disable the border. At least, bind the BorderThickness property of the control to this border.

3. There are 2 display mode: Interactive view and print preview. In some cases, the interactive view is not useful, so there should be a way to disable the button, or better remove it. At the same time the button is removed, you should also remove the first 4 buttons, which are only used in this mode.

4. The export button content should be customizable: we should be able to specify which formats are displayed there.

Patrick
-         
In
the print preview mode, when the zoom is set to ”Whole page”, the code
calculates a zoom factor. Doing so, it makes a round of the value, instead of a
ceiling. The result is that, depending on the size of the window, there are
sometimes a scroller that is shown and active. For example, if the zoom to
display the whole page is 108.4%, it is displayed with a zoom of 108% and the
scroller appears.

-         
The
whole control is enclosed in a border. In the case the control is displayed in
a window, and only it is in the window, this border should not be there: please
add an option to disable the border. At least, bind the BorderThickness
property of the control to this border.

-         
There
are 2 display mode: Interactive view and print preview. In some cases, the
interactive view is not useful, so there should be a way to disable the button,
or better remove it. At the same time the button is removed, you should also
remove the first 4 buttons, which are only used in this mode.

-         
The
export button content should be customizable: we should be able to specify
which formats are displayed there.


 

5 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 29 Oct 2014, 04:17 PM
Hello Patrick,

  1. This issue can be observed on our end only while resizing the window. When the window is resized and is already in its final state the report viewer does not show any active scroll bars. Please verify if this is the case on your end and attach screenshots of the described behavior.

  2. The style of the viewer can be modified by editing the viewer's template - Telerik.ReportViewer.Wpf.xaml.

  3. The first 4 buttons (First Page, Last Page, Next Page, Last Page) are not used exclusively in the Print Preview mode. They are used in Interactive View as well, since the report may have page breaks, or you can display a report book. Again, you can remove any of the buttons in the toolbar by modifying the WPF viewer template file.

  4. The formats available in the viewer can be configured in the application configuration file. This has been discussed in the Restrict Export Type to .Pdf forum thread. Additional information can be found in the Configuring Telerik Reporting help articles.


Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 29 Oct 2014, 04:49 PM
Hello Nasko,
thank you for your answer.

1. See the attached screenshot for an example. In my case, the size and position of the preview window is kept between sessions. With this window size, when I select Whole Page in the drop down, the scroller is active. The zoom should be set at 107% to remove the scroll bars.

2. Editing the template is not a viable option: shoould be done each time a new version of Telerik Report is used. Also, as the user has the possibility to select the theme it should be done for all themes. The work is too much. It is much more easier to do this in code.

3. You're wrong, the first four buttons are only enabled in interactive mode. The 4 you mention are buttons 5 to 7. Again, editing the template is not a viable option.

4. I will try later and keep informed.
0
Stef
Telerik team
answered on 03 Nov 2014, 04:16 PM
Hello Patrick,

The issue with the scroll-bar is logged in our system for improvement. Your Telerik points are updated for pointing this issue to our attention.

In general, as of Telerik Reporting Q1 2014 the WPF ReportViewer uses only implicit styles instead of the StyleManager. All style modifications must be applied in the corresponding Telerik.ReportViewer.Wpf.xaml file: This modifications include:
  • Adding/Removing of controls from the viewer's template (you will have to edit the ReportViewer style template);
  • Changing borders (brushes are set as static resources);

You can also control the view mode and zoom in the viewer trough the viewer - ReportViewer Members.


The Telerik.ReportViewer.Wpf.xaml contains the default theme settings. If the file is modified you will have to merged the changes with newer versions of the file.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 04 May 2017, 02:36 PM

Hello,

with Telerik Reporting R2 2017, the problem #1 is back....

0
Stef
Telerik team
answered on 09 May 2017, 01:44 PM
Hello Patrick,

Thank you for contacting us.

We reproduce the problem, when the content is changed (expand/collapse actions in the report) or the viewer size changes. The issue is logged in our system for improvement and your Telerik points are updated respectively. Please excuse us for the caused inconvenience.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Nasko
Telerik team
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Stef
Telerik team
Share this question
or