This is a migrated thread and some comments may be shown as answers.

Embedding a data source in report file

2 Answers 351 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Jabed
Top achievements
Rank 1
Jabed asked on 11 Feb 2020, 05:10 PM
I am using standalone Telerik Report Designer R3 2019.  I have created a .trdp file using standalone designer. As I am using SQLite data provider, I had to update the configuration file that comes with report designer and now I can create a data source with a provider type of "Sqlite Data Provider". 

I decided to embed a datasource in the report file so the reporting engine doesn't need to do any operation in the backend and fill data. Pretty straightforward. According to the forum post I have read If I am embedding the datasource I do not need to add config file in my application. But I cannot seem to view data using ReportViewer although I could view it on Preview using Standalone report designer. 

Any thoughts on this?

2 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 14 Feb 2020, 02:33 PM

Hi Jabed,

We have already discussed the same topic in support ticket #1453085. I will share the response here as well, so our community can also benefit from it:

Make sure that the System.Data.SQLite NuGet package is installed in the application where the viewer is located.

We tried to reproduce the behavior in a sample WinForms application and a report with embedded connection string and SQLite. Below is the app.config file of the application. You may try to compare it with yours:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
  </startup>
  <entityFramework>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
      <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
    </providers>
  </entityFramework>
  <system.data>
    <DbProviderFactories>
      <remove invariant="System.Data.SQLite.EF6" />
      <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
    <remove invariant="System.Data.SQLite" /><add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" /></DbProviderFactories>
  </system.data>
</configuration>

Regards,
Neli
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jabed
Top achievements
Rank 1
answered on 21 Feb 2020, 07:39 PM
Thanks, that works properly. 
So I had to install the Sqlite in visual studio and update the app config file with Data Provider tag.
Tags
Report Designer (standalone)
Asked by
Jabed
Top achievements
Rank 1
Answers by
Neli
Telerik team
Jabed
Top achievements
Rank 1
Share this question
or