I need to modify, when loading, a picturebox value from a report generated in TRDX and kept in a DB.
I know that's maybe because my knowlage is limitated... but after several tries and too many hours searching I can't find the correct way. Anyone can help??
I'm develloping in asp.net webforms, c#, VS2013.
Here'a a code snippet of my question:
XmlReportSource mapa = new XmlReportSource();
string xml = dal.LeMapa(connection, Session["Report"].ToString());
mapa.Xml = xml.Replace("DBDev",connection);
ReportViewer.ReportSource = mapa;
XmlReportSource instanceReportSource = (XmlReportSource)this.ReportViewer.ReportSource;
Report report = (Report)instanceReportSource.ToString();
PictureBox img = report.Items.Find("logo", true) as PictureBox;
DataTable dt = dal.LeLogoEmpresa(Connection);
if (dt.Rows.Count > 0)
foreach (DataRow dr in dt.Rows)
img.Value = dr["Logotipo"];
img.MimeType = dr["ImgTip"].ToString();
How canI find the picturebox??