Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
Display image in ReportViewer with a parameter
abdelwaheb ammar
7y
447
1
Reply
Good evening, I try to display an image in a reportViewer from a send path as a parameter.
Here is my code that I insert:
public
partial
class
PrintFiche : Form
{
public
PrintFiche()
{
InitializeComponent();
}
private
void
PrintFiche_Load(
object
sender, EventArgs e)
{
reportViewer1.LocalReport.ReportPath =
"D:\\workspace\\Report\\FichePersonne.rdlc"
;
ReportParameter lim =
new
ReportParameter(
"image"
,@
"C:\Documents and Settings\Mes images\Échantillons d'images\Collines.jpeg"
,
true
);
reportViewer1.LocalReport.EnableExternalImages =
true
;
reportViewer1.LocalReport.SetParameters(
new
ReportParameter[] {lim} );
this
.reportViewer1.RefreshReport();
}
}
But the result I get is an image in X form
what is the mistake in this code ?
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
About video uploading into server and then play that video.
How Can i get the finger print data from my laptop in C# ?