Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
525
XamReportPreview, Default Width and Height
posted

Hello,

I am using the XamReportPreview-Control and would like to set
the starting Default-width and height of the Preview-Control to Page Width.
 - Just like the functionality of the toolbar-XamReportPreview-Control-Button (Page Width Ctrl + 2). -
Can you give me the propertyname and propertyvalue?

Thanks
voks

Parents
  • 27093
    posted

    Hello,

     

    Here is a post by Andrew Smith describing how the zooming works: http://forums.infragistics.com/forums/p/22016/80955.aspx#

     

    You can use the DocumentViewer's Zoom property like so:

     

    XamReportPreview previewer = new XamReportPreview();           

    previewer.GeneratePreview(report, false, false);

    previewer.ApplyTemplate();

    previewer.DocumentViewer.Zoom = 120.0;

    Window previewWindow = new Window(){Content = previewer };

    previewWindow.ShowDialog();

     

    Please let me know if you require any further assistance on the matter.

     

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support

     

Reply Children
No Data