简体   繁体   中英

How to show images from database in a rdlc report in a windows form application

In a windows form application i am trying to show images from database in a rdlc report. In the database i have stored the image path and in rdlc report i have used image with source as "database" and MIME type as "image/png" but after running the report is show red cross signed images instead of original images. 在此处输入图像描述

I have verified the images path, and also in windows forms the images are showing correctly with the exact same path.

Instead of selecting image source as "Database" i have set it to " External " and also enabled _reportViewer.LocalReport.EnableExternalImages = true; and used file:/// before the image path and it worked for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM