Page 1 of 1

Can I add a reference to my report?

Posted: Thu Dec 13, 2007 11:48 am
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?


Can I add a reference to my report?

Posted: Thu Dec 13, 2007 12:19 pm
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

Can I add a reference to my report?

Posted: Thu Dec 13, 2007 12:39 pm
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.

Can I add a reference to my report?

Posted: Fri Dec 14, 2007 9:29 am
by Guest
If you add using statement with other using statement then it should be saved correctly.

Thank you.