Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在运行时向RDLC添加控件_C#_Asp.net_Visual Studio 2010_Reporting Services_Rdlc - Fatal编程技术网

C# 在运行时向RDLC添加控件

C# 在运行时向RDLC添加控件,c#,asp.net,visual-studio-2010,reporting-services,rdlc,C#,Asp.net,Visual Studio 2010,Reporting Services,Rdlc,我需要能够添加到我的报告动态所有用户上传的图像。我将所有图像存储在一个地方,并将所有图像的名称存储在数据库中 使用RDLC可以实现这一点吗?或者我需要生成一个pdf,然后使用类似iTextSharp的东西将图像插入其中吗?我通过生成一个只包含图像的pdf,然后将两个pdf与iTextSharp合并来解决这一问题。是的,这是可能的 在RDLC中添加一个映像 在“图像属性”中,将图像源设置为“外部” 对于外部源的值,请指向数据集中的字段,该字段可能类似于:MyImageDirectory+NameO

我需要能够添加到我的报告动态所有用户上传的图像。我将所有图像存储在一个地方,并将所有图像的名称存储在数据库中


使用RDLC可以实现这一点吗?或者我需要生成一个pdf,然后使用类似iTextSharp的东西将图像插入其中吗?

我通过生成一个只包含图像的pdf,然后将两个pdf与iTextSharp合并来解决这一问题。

是的,这是可能的

  • 在RDLC中添加一个映像
  • 在“图像属性”中,将图像源设置为“外部”
  • 对于外部源的值,请指向数据集中的字段,该字段可能类似于:MyImageDirectory+NameOfImageFromDatabase.jpg
  • 如果要显示多个图像,请使用tablix或列表列出所有图像

    还有一件事:我必须将我的路径设置为URI才能使其工作。上次我试的时候,绳子坏了