Database image in reportviewer

1

Hello, I have the following problem: I have a table of Paciente and it has a Foto field, which is a string with the path of this photo. I need to generate a report with the data of the selected patient and in that report should contain of the same. How to do this?

    
asked by anonymous 26.05.2015 / 15:26

1 answer

1

Set the property EnableExternalImages to true :

this.reportViewer1.LocalReport.EnableExternalImages = true;

And use an absolute path in the following format:

string caminho = "file:////D:\UmCaminho\UmaImagem.JPG";
    
27.05.2015 / 03:48