Show image on RDLC report from database by image path

前端 未结 3 937
自闭症患者
自闭症患者 2021-01-22 21:42

The image path is stored in the SQL Server 2008 database. On my RDLC report, I have a image field. I have set this field to get the image path from the database column in the da

3条回答
  •  鱼传尺愫
    2021-01-22 22:09

    For display the external image in RDLC report,

    • You have to set EnableExternalImages to true.

    • The file path you are using should be absolute path. The path you are using should be in the form of "file:///C:/RDLCTest/TestImage.png".

    • Also, you have to set the MIME type for the image control. Each file type has its own MIME type. Refer http://webdesign.about.com/od/multimedia/a/mime-types-by-file-extension.htm for list of MIME types based on file extension.

提交回复
热议问题