将 byte[] 传递给 stimulsoft 使用变量显示在图像上
pass byte[] to stimulsoft using variable to display on image
我想使用变量将从 sql 数据库(varbinary) 获取的徽标 byte array
传递到我的 stimulsoft 报告,并在图像组件中显示header.
有人可以帮忙吗?
byte[] ImageByteArray = ReadLogoFromSqlDataBase();
MemoryStream ms = new MemoryStream(ImageByteArray);
System.Drawing.Image image = System.Drawing.Image.FromStream(ms);
StiReport rpt = new StiReport();
rpt.ReportFile = "rpt1.mrt";
rpt.Dictionary.Variables.Add("Logo", image);
rpt.Design(); or rpt.Print();
我想使用变量将从 sql 数据库(varbinary) 获取的徽标 byte array
传递到我的 stimulsoft 报告,并在图像组件中显示header.
有人可以帮忙吗?
byte[] ImageByteArray = ReadLogoFromSqlDataBase();
MemoryStream ms = new MemoryStream(ImageByteArray);
System.Drawing.Image image = System.Drawing.Image.FromStream(ms);
StiReport rpt = new StiReport();
rpt.ReportFile = "rpt1.mrt";
rpt.Dictionary.Variables.Add("Logo", image);
rpt.Design(); or rpt.Print();