Update datasource via application

Stimulsoft Reports.NET discussion
User avatar
Hessam8008
Posts: 10
Joined: Sat Jun 27, 2015 10:40 am

Re: Update datasource via application

Post by Hessam8008 »

Aleksey Andreyanov wrote: You have connection and data source in the report. Why do you register it again.
Hello,

You are right and SQL queries work mush faster on large data, However, I don't want to omit the problem.
There are 2 reasons:
1.I need to display different summaries chart to end-users after details, and I don't want send many SQL queries to stiReport.
2.I do not want stiReport connect to database directly. Actually I want to feed stiReport via application.

Thank you for replies and follow my post :)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Update datasource via application

Post by HighAley »

Hello.

There was some issue with TypedTableBase that you use. We have made an improvement. It will be available in our next prerelease build.

Here is the code that you should use in your project:

Code: Select all

                .Load(DefaultPath)
                .Dictionary.DataSources.Remove(.Dictionary.DataSources("rpt_TimeAndDay"))
                .Dictionary.Databases.Remove(.Dictionary.Databases("csReport"))
                .RegData("rpt_TimeAndDay", DS.rpt_TimeAndDay)
                .Dictionary.Synchronize()
                .Design()
Our next prerelease build will be available on Friday.

Thank you.
User avatar
Hessam8008
Posts: 10
Joined: Sat Jun 27, 2015 10:40 am

Re: Update datasource via application

Post by Hessam8008 »

Hello,

The problem was solved in your latest prerelease : Stimulsoft Reports.Net 2015.1.12 from 2015.07.10

Thank you so much :)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Update datasource via application

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.
Post Reply