Page 1 of 1
Own assembly for functions
Posted: Fri Oct 12, 2012 7:19 am
by ChrDressler
Hi,
I want to add my own assembly (with methods for formatting, calc etc.).
How can I do this?
-christoph
Re: Own assembly for functions
Posted: Fri Oct 12, 2012 7:54 am
by joro
Hello!
Complete the following 4 steps to use your own assembly:
1. Copy your assembly into your stimulsoft\bin directory (e.g. C:\Program Files\Stimulsoft Reports.Net 2012.2\Bin)
2. Open Report-Designer and click on "Referenced Assemblies" on the report properties tab
3. Add the assembly (e.g. MyOwn.Assembly.dll)
4. Switch to "Code View" and add a USING statement
Now you are ready to use all functions in your assembly.
joro
Re: Own assembly for functions
Posted: Fri Oct 12, 2012 9:44 am
by ChrDressler
Hi joro,
thanks for the fast answer, works fine!
I create reports at runtime (convert from another format). So i can write:
Code: Select all
var references = _Report.ReferencedAssemblies.ToList();
references.Add("MyFunc.dll");
_Report.ReferencedAssemblies = references.ToArray();
Christoph
Re: Own assembly for functions
Posted: Fri Oct 12, 2012 1:13 pm
by HighAley
Hello.
Yes, you can add an assembly with this code if you use .Net Framework 4.0 or higher.
Thank you.