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 报表中显示图像
基础教程推荐
- Moq It.Is<>不匹配 2022-01-01
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- WPF 模态进度窗口 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
