Custom types

Stimulsoft Reports.NET discussion
Post Reply
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

Custom types

Post by EDV Gradl »

When I create a variable in the report, I can only set the default .net types and not e.g. my own enum.

It is possible to define a variable like this in the designer:

private MyEnum MyVar;

where MyEnum is:

pulic enum MyEnum
{
One,
Two,
Three
}

Thanks a lot!
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Custom types

Post by Vital »

You can add your types to default types with following code:

Code: Select all

StiTypeWrapper.SimpleTypes.Add(typeof(mytype))
Thanks.
Post Reply