开发者

Crystal Report file deployment from Class Library project

开发者 https://www.devze.com 2022-12-17 17:34 出处:网络
I have a Visual Studio 2008 solution which is multi-layered. In one of those projects(which is not the main project and is actually a Class library) i have a Crystal Report file which i want to be in

I have a Visual Studio 2008 solution which is multi-layered.

In one of those projects (which is not the main project and is actually a Class library) i have a Crystal Report file which i want to be includ开发者_开发问答ed in the deployment of the application. I tried several settings with no success.

How can i achieve deploying this report file without "hacking" around (without copying into main project ) or using other "obscure" ways...

Thanks in advance!


It turns out that the report has to be configured in its build action as an embedded resource. Calling the report has to be done through its class name (instantiating and so on). Then in the reportviewer object the source has to be set to this report object.

Loading a report would NOT work because of the nature of the project: it's a class library.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号