Own assembly for functions

Stimulsoft Reports.NET discussion
Post Reply
ChrDressler
Posts: 68
Joined: Tue Nov 09, 2010 2:05 pm
Location: Dresden

Own assembly for functions

Post by ChrDressler »

Hi,

I want to add my own assembly (with methods for formatting, calc etc.).
How can I do this?

-christoph
Foxpro and behind
joro
Posts: 63
Joined: Wed Jan 27, 2010 7:35 am

Re: Own assembly for functions

Post 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
Attachments
Stimulsoft Assembly.png
Stimulsoft Assembly.png (91.36 KiB) Viewed 1621 times
ChrDressler
Posts: 68
Joined: Tue Nov 09, 2010 2:05 pm
Location: Dresden

Re: Own assembly for functions

Post 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
Foxpro and behind
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Own assembly for functions

Post by HighAley »

Hello.

Yes, you can add an assembly with this code if you use .Net Framework 4.0 or higher.

Thank you.
Post Reply