views:

801

answers:

0

I have a Visual Studio 2005 solution which contains two projects - a Windows Forms project in VB and a class library in C#. My VB project includes an RDLC report file.

I have recently learned that you can add custom code and external references to an RDLC report. I would like to reference my C# class library from the RDLC file (which, as I said, is in my VB project). But when you click the "..." button on the Report -> Properties -> References tab, it doesn't give you the option to add project references, only .NET assemblies and other .dll files on your machine.

What is the best way to add a project reference to an RDLC?

I tried adding my C# library .dll from both the VB and C# project bin folders, but got compile errors indicating that it could not be found. I found the workaround that instructed me to put the .dll in my Visual Studio/..../PrivateAssemblies folder. Doing this got rid of the File Not Found error, but I still got an error telling me that the class I was attempting to reference on the Report -> Properties -> References tab under Classes could not be found.

Any suggestions would be much appreciated. Thanks.