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
105
Assign Datasource in WPF file for report1.igr
posted

 

 

I am trying to use reporting tool. I have created sample project.

I need to know how to assign datasource in WPF file for report1.igr in below tag.

 

 

<

 

 

 

ig:ClientRenderSettings DefinitionUri="WpfApplication1.Report1.igr, WpfApplication1">

 

 

 

 

<ig:ClientRenderSettings.DataSources>

 

Thanks for help,

Jaydeep

Parents
  • 3070
    posted

    Hi,

    You can bind the data source defined in the report directly in the XAML using Bindings, like this:

    <ig:XamReportViewer>

        <ig:XamReportViewer.RenderSettings>

            <ig:ClientRenderSettings DefinitionUri="MyNamespace.Orders.igr, MyAssembly">

                <ig:ClientRenderSettings.DataSources>

                    <ig:DataSource TargetDataSource="Order_Detail"

                                   ItemsSource="{Binding OrdersDataSource}" />

                </ig:ClientRenderSettings.DataSources>

            </ig:ClientRenderSettings>

        </ig:XamReportViewer.RenderSettings>

    </ig:XamReportViewer>       

     

    “Order_Detail” is the name of the data source defined at design-time.

    You can see examples of this on pages 138 and 236-237 of the documentation (notice that when you install the CTP a PDF containing the documentation gets installed too).

    You can also programmatically set a new RenderSettings configuration specifying the report you want to render and the data sources you want to use.

    May be if you give me more information about what you are specifically trying to accomplish I can help you better.

    Thanks,

    Leo

Reply Children