我想在水晶报表中显示图像.场景是这样的.
I want to show image in a crystal report. Scenario is something like this.
我有一个数据库,其中我的图像路径保持不变.例如 ftp://Images/1.jpg
I have a database where my path of an image is persisting. eg ftp://Images/1.jpg
现在我想在水晶报表中重复这张图片.
Now i want to repeat this image in a crystal report.
当我填写我的 datatable
时,它会显示完整的 url.当我在 GridView 中显示此字段时,我使用 imageBox
来显示我的图像,它对我非常有用.
When i fills my datatable
it shows me complete url. When i displays this field in GridView i uses imageBox
to display my image and it works for me very fine.
但是当我尝试对水晶报表做同样的事情时,它开始让我按原样显示图像路径.现在在这里而不是路径我想要显示图像.
But when i tries to do the same with crystal reports, it starts me showing image path as it is. Now here instead of path i want an image to be displayed.
我知道如果您使用的是 Visual Studio 附带的 Crystal Reports,则不支持此功能.它将显示存储在 db 字段中的图像,但不是来自 url.
I know that if you are using the Crystal Reports included with Visual Studio, this is not supported. It will display images stored in a db field, but not from a url.
我认为(但不确定)没有任何版本的 Crystal 支持用于显示图像的 ftp 协议.
I think (but do not know for sure) that no version of Crystal supports the ftp protocol for displaying images.
这篇关于使用 URL 在 Crystal 报表中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!