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
610
Sizing the XamReportViewer
posted

When the XamReportViewer is added tot he MainPage.xaml, it has a default size. When the project is run, the report shows up within this window. I want to change the size of the window so that I can see a full page of the report without having to decrease the display percentage.

The MainPage.xaml has 3 controls: userControl, Grid, and XamReportViewer. Where in the documentation does it explain all three of these - their functionality, features, and how to re-size them?

Parents
  • 125
    posted

    Hi Sylvia,

             you can try removing Height, Width, VerticalAlignment and HorizontalAlignment properties from XamReportViewer control.

    After dropping the XamReportViewer, if you remove that properties then XamReportViewer control will try to fill the space inside the Grid control.

    The code should look like this:

    <Grid x:Name="LayoutRoot" Background="White">      

      <ig:XamReportViewer Name="xamReportViewer1" />

    </Grid>

     

    You can read more about layout here:

    http://msdn.microsoft.com/en-us/library/cc645025(v=vs.95).aspx

     

    Please let me know if this solve your issue.

     

    Thanks,

    Andres.

     

     

Reply Children
No Data