如何在Rdlc上以二进制格式存储在数据库中的报表上显示图像。 [英] How Show Image On Report On Rdlc Which Stored In Database In Binary Format.

查看:70
本文介绍了如何在Rdlc上以二进制格式存储在数据库中的报表上显示图像。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我想在rdlc的报告上显示图像,它以二进制格式存储在数据库中。如何在rdlc的报告上显示图像。





在选择图像源中,选择数据库。

在使用此字段中,选择该字段包含图像。

使用此MIME类型,选择图像的MIME类型。

单击确定。



以上的东西对我来说不起作用

Hi everyone I want to show image on report on rdlc which stored in database in binary format. How can i show the image on report of rdlc.


In Select the image source, select Database.
In Use this Field, select the field that contains the image.
In Use this MIME type, select the MIME type of the image.
Click OK.

above thing is not worked for me

推荐答案

嗯,你有没有选择更改你在数据库中存储的类型,你可以改用base64代替我觉得在rdlc中更容易使用的二进制文件,如果你决定使用base 64尝试添加



hmmm do you have the option to change the type you store in the database, you can change by using base64 instead of binary which i find easier to use in rdlc, if you do decide to use base 64 try adding

=Convert.FromBase64String(Convert.ToString(Fields!Barcode.Value).Replace("data:image/jpeg;base64,","").Replace("data:image/png;base64,",""))





在图像框属性中,一般情况下,使用此字段表达。



对不起,如果我的英语非常糟糕。



in the image box properties, under general, "Use this field" expression.

Sorry if my English is really bad.


您好,



可能以下链接对您有用。



http:// www.c-sharpcorner.com/Blogs/6194/display-image-in-rdlc-report-microsoft-report-viewer.aspx [ ^ ]


这篇关于如何在Rdlc上以二进制格式存储在数据库中的报表上显示图像。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆