使用 URL 在 Crystal 报表中显示图像

3

本文介绍了使用 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 报表中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

C# 中的多播委托奇怪行为?
Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)...
2023-11-11 C#/.NET开发问题
6

参数计数与调用不匹配?
Parameter count mismatch with Invoke?(参数计数与调用不匹配?)...
2023-11-11 C#/.NET开发问题
26

如何将代表存储在列表中
How to store delegates in a List(如何将代表存储在列表中)...
2023-11-11 C#/.NET开发问题
6

代表如何工作(在后台)?
How delegates work (in the background)?(代表如何工作(在后台)?)...
2023-11-11 C#/.NET开发问题
5

没有 EndInvoke 的 C# 异步调用?
C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)...
2023-11-11 C#/.NET开发问题
2

Delegate.CreateDelegate() 和泛型:错误绑定到目标方法
Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)...
2023-11-11 C#/.NET开发问题
14