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
860
Programmatically Load Report
posted

I think the title prettymuch explains it; but for a standard WPF application (not Silverlight) what is the recommended way to load up a report programmatically?

Parents
  • 2848
    posted

    Hi Collin,

    I'm not sure what you mean by programatically. The way that works both in SL and WPF is doing something like:

    <ig:XamReportViewer>
       <ig:XamReportViewer.RenderSettings>
          <ig:ClientRenderSettings  DefinitionUri="ReportLibrary.MyReport.igr, ReportLibrary" >          

                   <ig:ClientRenderSettings.DataSources>
                       <ig:DataSource TargetDataSource="Orders" ItemsSource="{Binding          ElementName=domainDataSource}" />              
               </ig:ClientRenderSettings.DataSources>
          </ig:ClientRenderSettings>
       </ig:XamReportViewer.RenderSettings>
    </ig:XamReportViewer>

    You can achieve that from XAML or from code.

    Regards,

    Andres
     

Reply Children