Page 2 of 2

Re: DataSource from an Assembly

Posted: Mon Jul 02, 2012 3:36 pm
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.

Re: DataSource from an Assembly

Posted: Wed Jul 04, 2012 1:22 pm
by Alex K.
Hello,

Thank you for the sent code.

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