本文介绍了NotShowing 数据绑定图像(报告服务)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为 SSRS 创建了 SendWorkOrder.rdl 报告.在数据集中,我有一个带有 Image dataType 的字段(该数据库列中的值,例如 - 0x89504E470D0A1A0A000000....).按照

然后将该字段设置为对您的 0x89504E470D0A1A0A000000... 数据的引用

=Fields!Marker.Value

和Mime类型对应的图片格式

=Fields!Marker_Type.Value

(注意这应该类似于 image/jpegimage/png)

没有图像格式,什么都不会呈现.

如上所示的设置应正确呈现,如图所示

--> 变成 -->

I Create an SendWorkOrder.rdl Report for SSRS. In the dataSet I have a field with Image dataType(Value in that database column eg- 0x89504E470D0A1A0A000000....).Followed msdn article to create data bound image.I Tried following expressions, But Image Not Showing

=First(Fields!Signature.Value, "CasingList")
=System.Convert.FromBase64String(Mid(System.Convert.ToBase64String(Fields!Signature.Value),105))
=Convert.FromBase64String(First(Fields!Signature.Value, "CasingList"))
解决方案

You are trying to create an image in your report from the database?

I assume you have set up an image control as follows

Then set the field to be a reference to your 0x89504E470D0A1A0A000000... data

=Fields!Marker.Value

And the Mime type to the the corresponding image format

=Fields!Marker_Type.Value

(note this should be something like image/jpeg or image/png)

Without the image format nothing will render.

A set up such as the above should render correctly, as shown

--> becomes -->

这篇关于NotShowing 数据绑定图像(报告服务)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 22:07