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