如何在不使用数据库的情况下在运行时查看 Crystal Report 9 中的动态图像?

9

本文介绍了如何在不使用数据库的情况下在运行时查看 Crystal Report 9 中的动态图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我遇到这个问题是因为我使用的是水晶报表 9,我无法在报表中查看动态图像.

I encounter this problem because im using crystal report 9 and I can't view Dynamic images in my Reports.

场景是这样的.

用户将只是浏览图像并成为我报告的图片.我不会将它保存到数据库的原因是因为它只会使用一次,如果我保存它,这对我的数据库来说是一个负担.

The user will just browse the image and be the picture to my report. The reason i will not save it to database because it will only used once and if i will save it, it is a burden to my database.

我搜索了很多,解决方案是 Crystal Report 中的 Graphic Location,但我认为它仅在 Crystal Report XI 中受支持..

I search a lot and the solution is the Graphic Location in Crystal Report but it is only supported in Crystal Report XI i think..

任何人都可以对这个问题有所了解......

Can anyone have an idea regarding this problem....

我正在使用 C#..

非常感谢

推荐答案

如果您使用数据集作为报表数据源:

If you are using a dataset as the report data source:

1) 将图像数据放入一个byte[]缓冲区

1) Put the image data in a byte[] buffer

2) 将其放入数据集中 byte[] 类型的列中:row[column] = buffer;

2) Put it into a column of type byte[] in your dataset: row[column] = buffer;

3) 在 Crystal 中,如果您的数据源不是数据集,请使用带有 base64Binary 类型列的 XSD 文件.

3) In Crystal, if your datasource is not the dataset, use a XSD file with a column of type base64Binary.

4) 在 Crystal 中,将字段从数据源拖到报表中.

4) In Crystal, drag the field from the data source to the report.

这篇关于如何在不使用数据库的情况下在运行时查看 Crystal Report 9 中的动态图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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