public void RaiseCallbackEvent(string eventArgument) { string[] args = eventArgument.Split(null); Rdl.Render.RenderToHtml htmlReport = (Rdl.Render.RenderToHtml)Context.Session["RenderedReport"]; // Find the named text element and set the toggle state. Rdl.Render.TextElement te = (Rdl.Render.TextElement)htmlReport.SourceReport.FindNamedElement(args[1]); if (te != null) { te.ToggleState = (Rdl.Render.TextElement.ToggleStateEnum)Enum.Parse(typeof(Rdl.Render.TextElement.ToggleStateEnum), args[2]); } }
public void RaiseCallbackEvent(string eventArgument) { string[] args = eventArgument.Split(null); _htmlReport = (Rdl.Render.RenderToHtml)Context.Session[ReportSessionID]; // Find the named text element and set the toggle state. Rdl.Render.TextElement te = (Rdl.Render.TextElement)_htmlReport.SourceReport.BodyContainer.FindNamedElement(args[0]); if (te != null) { te.ToggleState = (Rdl.Render.TextElement.ToggleStateEnum)Enum.Parse(typeof(Rdl.Render.TextElement.ToggleStateEnum), args[1]); } _htmlReport.RenderBody(false); }