Display Image in Crystal reports Using URL(使用 URL 在 Crystal 报表中显示图像)
问题描述
我想在水晶报表中显示图像.场景是这样的.
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 报表中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 URL 在 Crystal 报表中显示图像
基础教程推荐
- 将数据集转换为列表 2022-01-01
- 如果条件可以为空 2022-01-01
- 更新 Visual Studio 中的 DataSet 结构以匹配新的 SQL 数据库结构 2022-01-01
- 重新排序 WPF TabControl 中的选项卡 2022-01-01
- 从 C# 控制相机设备 2022-01-01
- SonarQube C# 分析失败“不是指针的有效行偏移" 2022-01-01
- C# 9 新特性——record的相关总结 2023-04-03
- 在 VB6 或经典 ASP 中使用 .NET 2022-01-01
- Mono https webrequest 失败并显示“身份验证或解密失败" 2022-01-01
- 获取C#保存对话框的文件路径 2022-01-01
