NotShowing Data-Bound Image (Reporting Services)

六眼飞鱼酱① 提交于 2020-01-23 19:59:38

问题


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"))

回答1:


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 -->



来源:https://stackoverflow.com/questions/33526680/notshowing-data-bound-image-reporting-services

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!