SSRS displaying image from database

左心房为你撑大大i 提交于 2021-01-28 05:02:46

问题


I am trying to display image from database in my SSRS report. The report has two datasets. For all text boxes etc. I have added value expression as below:

=First(Fields!Branding4Tx.Value, "dsPrintOData_tblProdOrders")

But when I do this in the value field of image box, it return an error.

=Fields!ProdImage1.Value, "dsPrintOData_tblProdOrders"

If I just put =Fields!ProdImage1.Value it does not return error but does not display any image too. Please advise. Thanks


回答1:


It depends on the value in the ProdImage1 field. If it is a VARBINARY(MAX) data type value, then we can select Database as the image Source. If it is a string of the image URL, then we should select External as the image Source.

The following blog about Rendering images from a database on SSRS reports is for your reference: http://www.mssqltips.com/sqlservertip/2978/rendering-images-from-a-database-on-ssrs-reports/



来源:https://stackoverflow.com/questions/27701631/ssrs-displaying-image-from-database

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