使用物理路径在水晶报表中显示图像 [英] display image in crystal report using physical path
问题描述
我正在使用 vb.net 和访问.在其中我有一个字段,其中我只保存了该图像的路径.现在我想在动态水晶报表中显示该图像.那我该怎么办?我想在水晶报表中获取图像路径并显示在其中.
i am using vb.net and access. in which i have one field in which i have saved only the path of that image. Now i want to display that image in crystal report dynamic.so what should i do? i want to fetch the image path in crystal report and display in it.
请给我一个代码,以便我识别
please try to show me a code so i can identify
尽快回复我
谢谢
推荐答案
不要直接在 CR 中使用物理路径.将图像存储在数据表或数据库的二进制字段中并显示出来.
Don't use physical paths with CR directly. Store your image in a datatable or in a binary field of your database and show that.
这是一个使用数据表的代码项目解决方案:
Here is a code project solution that uses datatables:
http://www.codeproject.com/KB/vb/Image_in_Crystal_Reports.aspx
这很简单,C# 有点老,但我想你明白了.
It's simple, C# and a little old, but I think you get the trick.
这篇关于使用物理路径在水晶报表中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!