DataSource from an Assembly

Stimulsoft Reports.WPF discussion
denis.bredikhin
Posts: 4
Joined: Mon Jan 23, 2012 11:39 am
Location: Belgium

Re: DataSource from an Assembly

Post by denis.bredikhin »

I've addached project with our data provider. It was changed - some code specific for our application is removed. Also you need to implement part of code - in method ServiceDataReaderSource.ProcessCommand. This code should search for an object which contains method to be used as data source. In our app we have repository of services, so I've commented out our implementation.
Also in your app you need to call two static methods on startup:
MEScontrolDataAdapterService.Init() and Evaluator.Initialize()

After this you will be able to call methods with two syntax kinds:

1) ClassName.MethodName(@param1, @param2, ...) - depends on your target object search implementation
2) MethodName(@param1, @param2, ...) - allows to use method inside report code as data source

Probably this project contains a lot of unused code, and can be refactored to avoid implementation of DbXxxx classes, but we have them by historical reasons.

Hope this will help someone to use Stimulsoft Reports in better way.
Attachments
ForStimulsoft.zip
(41.34 KiB) Downloaded 237 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: DataSource from an Assembly

Post by Alex K. »

Hello,

Thank you for the sent code.

Let us know if you need any additional help.
Thank you.
Post Reply