Starting in 2019, the Reporting control is no longer included in Essential Studio®. If you're experiencing issues with the Syncfusion� Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.

Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.

We thank you for choosing Syncfusion� and appreciate your understanding.

Error displaying report using OData data source

I'm testing Syncfusion components and I'm loving it! But i'm getting the following error when trying to display a report using OData data source:

error.png

I came to the conclusion that maybe i need to add the OData datasource as an extension, but how do i do that in WPF? In Blazor i can do this:

ReportConfig.DefaultSettings = new ReportSettings().RegisterExtensions(new List<string> { "BoldReports.Data.WebData" });

But how do I do this in WPF?


My code in WPF:

MainWindow.xaml

<Window
    ...
    Loaded="Window_Loaded">
    <Grid>
        <syncfusion:ReportViewer xmlns:syncfusion="clr-namespace:BoldReports.UI.Xaml;assembly=BoldReports.Wpf" Name="reportViewer" />
    </Grid>
</Window>


MainWindow.xaml.cs

private void Window_Loaded(object sender, RoutedEventArgs e)
{
    this.reportViewer.ReportPath = @"MyReport.rdl";
    this.reportViewer.RefreshReport();
}

6 Replies

MR Manoranjan Rajendran Syncfusion Team July 21, 2022 06:07 AM UTC

Hi Mateus,


Thanks for contacting Bold Reports support.


Yes, you are correct. You have to add the extension for using the ODATA report in the WPF viewer. We don't have nuget for WPF applications. We will provide the extension project to meet your requirements. Meanwhile, could you please confirm whether you are using WPF ASP.NET or the.NET CORE framework? 


Regards,

Manoranjan R




MA Mateus replied to Manoranjan Rajendran July 21, 2022 07:27 AM UTC

I'm using WPF .NET Core Framework (WPF .NET 6).


Thank you for your attention!



MR Manoranjan Rajendran Syncfusion Team July 22, 2022 01:10 PM UTC

Hi Mateus,


Thanks for the update.


We will prepare and share the sample for this on or before July 27, 2022.


Regards,

Manoranjan R



MR Manoranjan Rajendran Syncfusion Team July 26, 2022 02:37 PM UTC

Hi Mateus,


We prepared and attached the sample for loading the ODATA report in the WPF NET Core application. Please check and share the details.


Sample Details:


Add the ODATA extension project to your application.


Add the below code in your app.confiq file.

<configuration>

  <configSections>

    <section name="ReportingExtensions" type="BoldReports.Configuration.Extensions, BoldReports.WPF" allowLocation="true" allowDefinition="Everywhere" />

  </configSections>

  <ReportingExtensions>

     <DataExtension>

       <Extension Name="OData" Assembly="BoldReports.Data.WebData" Type="BoldReports.Data.WebData.ODataExtension" />

       <Extension Name="WebAPI" Assembly="BoldReports.Data.WebData" Type="BoldReports.Data.WebData.WebAPIExtension" />

       <Extension Name="JSON" Assembly="BoldReports.Data.WebData" Type="BoldReports.Data.WebData.JSONExtension" />

    </DataExtension>

  </ReportingExtensions>

 </configuration>



Regards,

Manoranjan R


Attachment: WPF_NET_CoreODATA_abff1441.zip


MA Mateus replied to Manoranjan Rajendran July 26, 2022 11:32 PM UTC

Thanks, this worked for me.



MR Manoranjan Rajendran Syncfusion Team July 28, 2022 03:23 AM UTC

Hi Mateus,


Thanks for the update.


We are glad to hear that the reported issue has been resolved on your end. If you face any other issues, we suggest you open a new ticket using your account. 

https://support.boldreports.com/create



Regards,

Manoranjan R



Loader.
Up arrow icon