简体   繁体   English

是否可以从解决方案中的另一个报告项目或另一个文件夹加载SSRS rdl文件的图像?

[英]Can I load images for SSRS rdl file from another report project or another folder within solution?

i have a problem with rendering image on RDL file in reporting services (SQL 2008). 我在Reporting Services(SQL 2008)中在RDL文件上渲染图像时遇到问题。

I have embedded, external, database as a method of rendering images. 我已经嵌入了外部数据库作为渲染图像的方法。

In fact, I know those three option but... 实际上,我知道这三种选择,但是...

  1. I don't think it's a good idea to use embedded. 我认为使用嵌入式不是一个好主意。 if I have 200+ that use the same image as a report logo or something then it will be better if all report can use the same link to one image. 如果我有200多个使用同一图像作为报告徽标或其他内容的图片,则最好是所有报告都可以使用指向同一图像的相同链接。 so when i make change with image, I don't have to modify all of reports in my solution. 因此,当我对图像进行更改时,无需在解决方案中修改所有报告。

  2. I couldn't use database as an image source because I couldn't create any table to store the images. 我无法使用数据库作为图像源,因为无法创建任何表来存储图像。

  3. It seems that the only choice left is external 似乎剩下的唯一选择是外部

the folder structure in solution will be something like below 解决方案中的文件夹结构如下所示

替代文字

So my question is 所以我的问题是

  1. Can we load an images by writing some kind of c# library class to get path of those images in share folder? 我们是否可以通过编写某种C#库类来获取图像,以在共享文件夹中获取这些图像的路径?

or 要么

2. If i choose to embed image into report3.rdl, can report1.rdl get images from report3.rdl? 2.如果我选择将图像嵌入到report3.rdl中,report1.rdl是否可以从report3.rdl获取图像?

any idea will be welcome. 任何想法都将受到欢迎。 I'm at the dead end now. 我现在快要死了。

please advise me. 请建议我。

Sorry for my poor English and Thank you in advance for your help vee 对不起,我的英语不好,谢谢你的帮助。

When I put an image on a report, I get 3 options - External, Embedded, or Database. 将图像放在报表上时,会得到3个选项-外部,嵌入式或数据库。 Embedded causes the image to be stored in the RDL file itself. 嵌入式会使图像存储在RDL文件本身中。


Yes, I was going to post something to the effect, but it is starting to abuse the report server. 是的,我打算发布一些信息,但是它开始滥用报表服务器。 You could put eg logos into their own reports, and then put them on the actual reports as sub reports. 您可以将徽标放入自己的报告中,然后将其作为子报告放在实际报告中。 This would allow you to share the logos across the reports, but only need to update them once. 这样一来,您就可以在报告中共享徽标,而只需更新一次即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM