Page 2 of 2

Re: Update datasource via application

Posted: Wed Jul 08, 2015 5:04 am
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 :)

Re: Update datasource via application

Posted: Wed Jul 08, 2015 1:59 pm
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.

Re: Update datasource via application

Posted: Sun Jul 12, 2015 7:57 am
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 :)

Re: Update datasource via application

Posted: Mon Jul 13, 2015 5:47 am
by HighAley
Hello.

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

Thank you.