在Crystal Report 2008版本中,我们如何使用C#.Net从资源文件中获取图像路径 [英] In Crystal Report 2008 version how can we take image path from resource file using C#.Net

查看:69
本文介绍了在Crystal Report 2008版本中,我们如何使用C#.Net从资源文件中获取图像路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在ASP.Net 2008中使用水晶报表,并且在水晶报表中遇到从资源文件(.resx)访问图像路径的问题。我已经检查了所有东西,但只有一种方法,我们可以将数据库中的图像路径设置为BLOB对象。请告诉我如何直接从资源文件设置BLOB图片。



提前谢谢。

解决方案

如果是单个图像(静态),为什么不在水晶报告中嵌入图像?它简单易行更好的选择。或者您可以将图像存储在一个文件夹中。动态加载到报告中。



FYI

代码:检索作为嵌入式资源的图像(Visual C#) [ ^ ]



查看我的以前对CP中类似问题的答案


在水晶报告中动态设置图片路径 [ ^ ]

在水晶报告上打印照片 [ ^ ]

Crystal Report中的图像 [ ^ ]

^ ]

Hi,
I am using crystal report in ASP.Net 2008 and facing a problem to access the image path from resource file (.resx) in crystal report. I have checked every thing but only one method is there, we can set image path from database as BLOB object. Please tell me how can i set the picture insted of BLOB directly from resource file.

Thanks in advance.

解决方案

If it's a single image(static), why not embed images inside crystal reports? It's easy & better option. Or you could store image in a folder & dynamically load into reports.

FYI
Code: Retrieving an Image that is an Embedded Resource (Visual C#)[^]

Check my previous answers for similar questions in CP

Dynamically setting picture path in crystal report [^]
Printing photo on crystal report[^]
Images in Crystal Report[^]
How to load a photo in crystal report[^]


这篇关于在Crystal Report 2008版本中,我们如何使用C#.Net从资源文件中获取图像路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆