/// <summary> /// Creates the printed version of the graph. /// </summary> /// <returns></returns> protected string CreateChartPrint() { var eventArgs = new ChartCreationEventArgs(); OnChartCreationPrint(eventArgs); return(eventArgs.ChartXml); }
/// <summary> /// Creates chart based on search results. /// </summary> /// <returns></returns> private void CreateChart(object sender, ChartCreationEventArgs e) { try { e.ChartXml = FusionCharts.RenderChartHTML(ChartXmlDefinition, "", GetGraphXml(), "Report", Size.Width.ToString("#0"), Size.Heigth.ToString("#0"), false); } catch (Exception ex) { ShowError(ex); } }
/// <summary> /// Delegates to the report page the creation of the printed version graph. /// </summary> /// <param name="e"></param> private void OnChartCreationPrint(ChartCreationEventArgs e) { var handler = ChartCreationPrint; if (handler != null) { handler(this, e); } }
/// <summary> /// Creates the charts as needed for its printed version. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CreateChartPrint(object sender, ChartCreationEventArgs e) { try { if (ReportObjectsList.Count <= 0) { return; } var graphXml = GetGraphXml(); graphXml = graphXml.Replace("<graph", "<graph animation='0'"); e.ChartXml = FusionCharts.RenderChartHTML(ChartXmlDefinition, "", graphXml, "ReportPrint", "800", "350", false); } catch (Exception ex) { ShowError(ex); } }