Can I add a reference to my report?

Stimulsoft Reports.NET discussion
Post Reply
rmeshksar
Posts: 12
Joined: Thu Oct 18, 2007 4:39 pm
Location: Toronto

Can I add a reference to my report?

Post by rmeshksar »

I have some functions in my project that generate images on the fly using dynamic data.
These functions use a dll that I added to my project as a reference.
I also would like to have such an image in my report so in my report and for example in BeforePrintEvent of the image I want to assign the image result of that function.
But, because these functions use another dll I get an error regarding to the dll.
Is there any way that I can create a reference to that dll in my report?

EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

Can I add a reference to my report?

Post by EDV Gradl »

Clic on the report, there is a property Referenced assemblies. Add your assembly to that list.

Secondly switch to code view and add a using statement for your assembly.

That's all

Marco
rmeshksar
Posts: 12
Joined: Thu Oct 18, 2007 4:39 pm
Location: Toronto

Can I add a reference to my report?

Post by rmeshksar »

Thanks for you reply.
In code view when I add something to that like using statement that you mentioned, it does not save it and when I want to save it, it deletes the changes.
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

Can I add a reference to my report?

Post by Guest »

If you add using statement with other using statement then it should be saved correctly.

Thank you.
Post Reply