Page 1 of 1

Custom types

Posted: Mon Sep 04, 2006 7:14 am
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!

Custom types

Posted: Mon Sep 04, 2006 9:19 am
by Vital
You can add your types to default types with following code:

Code: Select all

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