// I use 'GetCurrentDirectory' so that I can deploy it to anotherwhere.
string imagePath = @"file:///" + Directory.GetCurrentDirectory() + @"\image.png";
this.reportViewer1.LocalReport.SetParameters(new ReportParameter[]
{
new ReportParameter("imagePath ", imagePathParameterName)
});
1条答案
按热度按时间qfe3c7zg1#
我在部署方面也有类似的问题。本文采用的方法是在RDLC设计中设置图像路径参数。调用报表查看器时指定图像路径。
字符串