How to view Dynamic Images in Crystal Report 9 during runtime without using Database?(如何在不使用数据库的情况下在运行时查看 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 中的动态图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在不使用数据库的情况下在运行时查看 Crystal Report 9 中的动态图像?


- 使用 rss + c# 2022-01-01
- Windows 喜欢在 LINUX 中使用 MONO 进行服务开发? 2022-01-01
- CanBeNull和ReSharper-将其用于异步任务? 2022-01-01
- Azure Active Directory 与 MVC,客户端和资源标识同一 2022-01-01
- 在 C# 中异步处理项目队列 2022-01-01
- 在 LINQ to SQL 中使用 contains() 2022-01-01
- 为什么 C# 中的堆栈大小正好是 1 MB? 2022-01-01
- C# 通过连接字符串检索正确的 DbConnection 对象 2022-01-01
- 带问号的 nvarchar 列结果 2022-01-01
- 是否可以在 .Net 3.5 中进行通用控件? 2022-01-01