如何在不使用数据库的情况下在运行时查看 Crystal Report 9 中的动态图像? [英] How to view Dynamic Images in Crystal Report 9 during runtime without using Database?

查看:14
本文介绍了如何在不使用数据库的情况下在运行时查看 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 中的动态图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆