Report with custom data guidance
Posted: Mon Feb 13, 2012 8:38 am
I need some guidance on how to best meet the below requirements. I've been playing with different methods in Stimulsoft and I can't seem to get what I want.
1. My application exposes data as public classes derived from IEnumerable and IEnumerator.
2. These classes have properties that can be used to specify parameters on the data produced by the class.
3. As the class is enumerated, data is produced on an as requested method.
I want to provide a solution to my clients so that they can see my classes in the report dictionary and be able to use Stimulsoft forms to define parameters for those classes.
Example:
class People : IEnumerable
{
public string LastNameStartSearch {}
public string LastNameEndSearch {}
}
class PeopleEnum : IEnumerator {}
class Person
{
public string FirstName {}
public string LastName {}
}
Using the example class names above, I would like to see "People" as a data source in Stimulsoft with "FirstName" and "LastName" as columns.
I would also like to be able to create a form with 2 text fields and somehow bind "People.LastNameStartSearch" and "People.LastNameEndSearch" to them.
I can easily do all of this if the data source was a SQL connection, but I do not know how to do this with my application's data.
1. My application exposes data as public classes derived from IEnumerable and IEnumerator.
2. These classes have properties that can be used to specify parameters on the data produced by the class.
3. As the class is enumerated, data is produced on an as requested method.
I want to provide a solution to my clients so that they can see my classes in the report dictionary and be able to use Stimulsoft forms to define parameters for those classes.
Example:
class People : IEnumerable
{
public string LastNameStartSearch {}
public string LastNameEndSearch {}
}
class PeopleEnum : IEnumerator {}
class Person
{
public string FirstName {}
public string LastName {}
}
Using the example class names above, I would like to see "People" as a data source in Stimulsoft with "FirstName" and "LastName" as columns.
I would also like to be able to create a form with 2 text fields and somehow bind "People.LastNameStartSearch" and "People.LastNameEndSearch" to them.
I can easily do all of this if the data source was a SQL connection, but I do not know how to do this with my application's data.