Strange apearance of RDLC report on WPF Application RRS feed

  • Question

  • Hi,

    We came up with an strange situation where we are showing the report (RDLC) in WPF by report viewer control, container of report viewer is Windows host.

    Report apeared as it was designed but it is stuck to left align and so much white space on right side of the container. We want it to apear as center align (i mean same space at both left and right side). We are frustrated to fix this but could not get luck... we tried VerticalAlign, HorizontalAlign, setting up margin for control.. but no luck... have posted the xaml code for your reference.

    //xaml code
     <WindowsFormsHost Margin= "0,5,5,0" Grid.Row="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                    <i:ReportViewer x:Name="ReportViewer" TabIndex="4"  ReportRefresh="ReportViewer_ReportRefresh"  />

    Any help highly appreciated...Thanks in Advance

    Tuesday, September 22, 2009 8:08 AM