Image of the database in reportviewer

Asked

Viewed 656 times

1

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

1 answer

1


Set the property EnableExternalImages for true:

this.reportViewer1.LocalReport.EnableExternalImages = true;

And use an absolute path and in the following format:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.