Jump to content
Software FX Community

shane2004

Members
  • Posts

    22
  • Joined

  • Last visited

shane2004's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, I'm trying to write a generic charting service based on ChartFX 7. All configuration data are stored in the configuration file and being read into a Template. Before I bind the data into the chart control, I apply those configuration settings from template. Something like those: Chart.Height = template.BaseHeight; Chart.Width = template.BaseWidth; Chart.ToolBar.Visible = template.ToolBar; My question is if I make the XML configuration file exactly like the property structure of Chartfx attributes, Can I dynamically bind data without explicitly indicate the properties, such as Chart.Height, Chart.Width etc? In other words, to separate the hardcode of binding settings into a predefined XML file. <Chart Name="Benzene"> <Height>239</Height> <Width>345</Width> <ToolBar> <Visible>True</Visible> </ToolBar> </Chart> Thanks
  2. I can manage to generate the jpg file by using renderStream directly on the page. Basically I use following codes to download the data in excel format from a dataview, any idea I can do similar thing but downloading the image? ============================================================== Response.ClearContent(); Response.AddHeader("content-disposition", "attachment; filename=" + strFileName); Response.ContentType = "application/excel";System.IO.StringWriter sw = new System.IO.StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); //Instantiate a datagridSystem.Web.UI.WebControls.DataGrid dg = new System.Web.UI.WebControls.DataGrid(); dg.DataSource = dv; dg.DataBind(); //Tell the datagrid to render itself to htmltextwriterdg.RenderControl(htw); Response.Write(sw.ToString()); Response.End();
  3. I know I can export chart as a image by doing: chart.Export(FileFormat.Jpeg, @"c:\image.jpg"); But how could I export the image as a service? Basical I want to create a web method which takes all relavent chart settings and dataset and returns a jpeg image to the caller. Thanks
  4. I know you can generate chart by changing chart.gallery = gallery.step. My question is, can I mix a step line and a straight line on the same chart?
  5. Can chartfx do the live rss feed embedded as google finance does? Like: http://finance.google.co.uk/finance?q=LON:RBS So the feed (news) on the left side can be interactive with the chart?
  6. Hi, Is there any easy way to check the serial number running on each product server? Thanks
  7. Hi, I'm running into the same issue when reinstall the chartfx 7 with a new production license. I'll try TT's approach. However why the fix is pointing to Chartfx 6.0 why the error was generated by Chartfx 7? Error as : CFX61B0-3 : Error creating temporary file. Could not find a part of the path 'D:\chartfx70\temp\CFV1208_0201172FD01.chs'. Link to: http://support.softwarefx.com/error/Cfx70/CFX61B0-3.htm Resolution Create the target folder and make sure you assign "Change" permissions to IUSER_MachineName (or everyone) on this folder. If you are using multiple web sites then you will need to create a "ChartFX6" virtual directory for each web site that points to Drive:\Program Files\ChartFX .Net\ChartFX6.
  8. Anyone knows how I can disable the toobar menu when save the chart as a bitmap? Thanks, Shane
  9. I know "Clipboard operations are not supported in FireFox." What else is not supported in FireFox? I cannot find any related information on your website.
  10. Also, if I have a daily price on Product A and a weekly price on Product B. How could I merge them and display them on the same picture?<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> They are OK when displaying them separately, but wouldn
  11. Hi, I used dataset built-in merge function to merge multiple series chart, however it is running into a problem when date (primary key) is different. So the chartfx is merging them as different rows, and obivously the chart is looking very wrong, so is there any better way to merge data before generating the chart For example, data sample as this below. How would I be able to draw a smooth lin on the product A firstly then Product B on top of that? Product A Price Prouct B Price 05/09/2008 05/09/2008 1826.48 06/09/2008 2612.47 06/09/2008 11/09/2008 2612.47 11/09/2008 12/09/2008 12/09/2008 1794.11 19/09/2008 19/09/2008 1841.30 20/09/2008 2612.47 20/09/2008 26/09/2008 26/09/2008 1868.39 27/09/2008 2612.47 27/09/2008 03/10/2008 03/10/2008 1792.23 04/10/2008 2612.47 04/10/2008 10/10/2008 10/10/2008 1717.13 11/10/2008 2612.47 11/10/2008 17/10/2008 17/10/2008 1716.14 18/10/2008 2612.47 18/10/2008 24/10/2008 24/10/2008 1602.07 25/10/2008 2612.47 25/10/2008 31/10/2008 2612.47 31/10/2008 1625.00 07/11/2008 2612.47 07/11/2008 1632.70 14/11/2008 2612.47 14/11/2008 1565.74
  12. I used this to export as excel format, HTH private void ExportToExcel(string strFileName, DataView dv) { Response.ClearContent(); Response.AddHeader("content-disposition", "attachment; filename=" + strFileName); Response.ContentType = "application/excel";System.IO.StringWriter sw = new System.IO.StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); //Instantiate a datagridSystem.Web.UI.WebControls.DataGrid dg = new System.Web.UI.WebControls.DataGrid(); dg.DataSource = dv; dg.DataBind(); //Tell the datagrid to render itself to htmltextwriterdg.RenderControl(htw); Response.Write(sw.ToString()); Response.End(); }
  13. I release it is working if you change the RenderFormat as .Net, but it wouldn't work, if it is in Image renderFormat. Can anyone answer this?
  14. Hi, I came cross an issue when a customer complains about the Axes Setting on default toolbar, which has an options button. But it did not do anything? What is the one for? Thanks
  15. Thanks, Frank, however I realised the issue only occurs when you build the project by using IIS web server but not the visual studio development server. Any suggestion?
×
×
  • Create New...