Jump to content
Software FX Community

eromurugan

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by eromurugan

  1. Hi, I got a solution and fixed the issue. I included the following statements to clear the datasource for the chart before assigning new chart datasource. ChartFx1.Data.Clear(); ChartFx1.DataSourceSettings.Fields.Clear(); Thanks a lot all suggestion.
  2. Thanks, Carlos I will mail the picture to the support and get their help too in finding a solution to this issue.
  3. Hi CarlosAC, Thanks for the reply. I tried to clear the datasource using Chart1.Data.Clear() method and them bind the new data but still during the second bind, it assume both the datasource set and display the comparison like chart with bars for two datasource. Thanks in advance.
  4. Hi, I need to display the chart on click of a button in a web page. On click of a button, I hit the DB to get data and bind them to the chart controls in the web page. On second click of the button, the data is bound to the chart control for second time. this makes bar chart with two colors for each of the data bound to it. I need to clear the datasource set to chart and reassign new datasource. How can this me achieved? Help me with some suggestions.
  5. Hi, I have web page with multiple Chart FX 7.0 Controls in it. I want to export all the content in a container like Panel to excel. Panel contains the charts. I am using the following code to achieve it. string exportContent = string.Empty; HttpResponse response = CreateExcelFile(fileName);using (StringWriter sw = new StringWriter()) { using (HtmlTextWriter htw = new HtmlTextWriter(sw)) {HtmlTable t = new HtmlTable(); HtmlTableRow top = new HtmlTableRow();HtmlTableCell tcell = new HtmlTableCell(); tcell.Controls.Add(control); top.Cells.Add(tcell); t.Rows.Add(top); t.RenderControl(htw); HttpContext.Current.Response.Write(sw.ToString());HttpContext.Current.Response.End(); } } I am getting error Object Reference not set at line t.RenderControl(htw);Please help me. Thanks in advance.
×
×
  • Create New...