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

Start report with zoom to width as default

4 Answers 805 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jiri
Top achievements
Rank 1
Jiri asked on 21 May 2014, 07:48 AM
Hi,

is any possibility to start telerik report (in wpf) with zoom to set into "fit width"?

4 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 21 May 2014, 08:28 AM
Hello Jiri,

You can set the WPF ReportViewer control's ZoomMode e.g.:
ReportViewer1.ZoomMode = ZoomMode.PageWidth;


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
Jiri
Top achievements
Rank 1
answered on 21 May 2014, 08:41 AM
Hi Stef, 

thank you for your reply. I am doing it in my global style, but it doesnt work

<Style TargetType="{x:Type local:ReportViewer}" >
    <Style.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="TextOptions.TextRenderingMode" Value="Auto"/>
            <Setter Property="TextOptions.TextFormattingMode" Value="Ideal"/>
        </Style>
    </Style.Resources>
    <Setter Property="ViewMode" Value="PrintPreview"/>
    <Setter Property="TextOptions.TextRenderingMode" Value="Auto"/>
    <Setter Property="TextOptions.TextFormattingMode" Value="Ideal"/>
    <Setter Property="ZoomMode" Value="PageWidth"/>
 
    <Setter Property="Template">
        <Setter.Value>

0
Stef
Telerik team
answered on 26 May 2014, 01:11 PM
Hello Jiri,

I will need more time to check your your question with our development team and will get back to you with an update.

Meanwhile, setting the property in code works as expected.

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
Stef
Telerik team
answered on 02 Jun 2014, 04:49 PM
Hello Jiri,

Currently the property is not exposed to be set through the viewer's style. We are going to change that in future release, where our aim is to include the change for Q2 2014 in June.

Your Telerik points are updated to thank you for pointing our attention to the scenario.

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.

 
Tags
General Discussions
Asked by
Jiri
Top achievements
Rank 1
Answers by
Stef
Telerik team
Jiri
Top achievements
Rank 1
Share this question
or