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

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

问题描述

我遇到此问题是因为我正在使用Crystal Report 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中的图形位置,但我认为只有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] =缓冲区;

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

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

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天全站免登陆