Jump to content
Software FX Community

kailashdhondiyal

Members
  • Posts

    13
  • Joined

  • Last visited

kailashdhondiyal's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Dear All, I have an exported ChartFX 6.2 chart file in xml format (testing.xml). Now when i try to convert it into ChartFX 7 format with the help of ChartFX.WinForms.Exporter.exe, it throws error. At command prompt it shows like this: C:\Program Files\Chart FX for Visual Studio 2005\Util>ChartFX.WinForms.Exporter. exe c:\testing.xml c:\hello.xml Chart FX 6.2 to 7.0 File Converter (WinForms) 7.0.2540.35667 Copyright Software FX 2005 Error when exporting the chart. Error when exporting Chart FX 6.2 to Chart FX 7.0 When i open new file i.e. hello.xml, it shows only: XML document must have a top level element. Error processing resource 'file:///C:/hello.xml'. While the exported file i.e. testing.xml is well formed. Below are contents of testing.xml <?xml version="1.0" encoding="UTF-8" ?> - <CFX6> <WALLWIDTH>2</WALLWIDTH> <BACKCOLOR>LightSteelBlue</BACKCOLOR> - <AXIS> - <ITEM index="0"> - <LABELSFORMAT> <DECIMALS>0</DECIMALS> </LABELSFORMAT> - <TITLE> <TEXT>BPM</TEXT> <AREA>Left</AREA> <LINEALIGNMENT>Near</LINEALIGNMENT> <FLAGS>DrawingArea, NoChangeDockArea</FLAGS> </TITLE> </ITEM> - <ITEM index="2"> - <TITLE> <TEXT>Time (sec)</TEXT> <AREA>Bottom</AREA> <LINEALIGNMENT>Near</LINEALIGNMENT> <FLAGS>DrawingArea, NoChangeDockArea</FLAGS> </TITLE> </ITEM> </AXIS> <MARKERSIZE>4</MARKERSIZE> <GALLERY>Lines</GALLERY> - <TITLES> - <ITEM> <TEXT>Heart Rate</TEXT> </ITEM> </TITLES> <PALETTE>Vivid</PALETTE> - <LEGENDBOXOBJ> <WIDTH>0</WIDTH> <HEIGHT>0</HEIGHT> <VISIBLE>False</VISIBLE> <DOCKED>Bottom</DOCKED> <AUTOSIZE>False</AUTOSIZE> </LEGENDBOXOBJ> <BORDEROBJECT type="SoftwareFX.ChartFX.DefaultBorder" assembly="ChartFX.Base" /> </CFX6> Please suggest me how to resolve this problem .....
  2. what is the use of public void RestoreImportChart() member of ChartFX.WinForms.Wrapper.Exporting.Exporter. I am using RestoreImportChart() in below mentioned scenerio, suggest me if this is correct for this scenerio: public static void ConvertChartFromBytes(byte[] data, ChartFX.WinForms.Chart Chart) { try { MemoryStream fs = new MemoryStream(data); SoftwareFX.ChartFX.Chart chartOld = new SoftwareFX.ChartFX.Chart(); chartOld.Import(SoftwareFX.ChartFX.FileFormat.Binary, fs); ChartFX.WinForms.Wrapper.Exporting.Exporter exporter = new ChartFX.WinForms.Wrapper.Exporting.Exporter(chartOld); exporter.RestoreImportChart(); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } }
  3. Francisco, I did exactly like you mentoned it above. But now it's showing another error after exporter.ExportChart(chartNew); Below is the error description: ex: {"Method not found: 'System.Collections.ICollection SoftwareFX.ChartFX.GalleryObj.Surface.get_Colors()'."} Source: ChartFX.WinForms.Wrapper.Exporter Stack Trace: at ChartFX.WinForms.Wrapper.Exporting.Exporter.ExportGalleryObj(Object importGallery, Object exportGallery) at ChartFX.WinForms.Wrapper.Exporting.Exporter.ExportChart(Chart exportChart) at ChartFX.WinForms.Wrapper.Exporting.Exporter.ExportChart(Chart export) at BTEToolControls.ToolBaseControl.ConvertChartFromBytes(Byte[] data, Chart Chart) in D:\BTETool\Migrated Code\Phoenix\BTEToolControls\ToolBaseControl.cs:line 1286 - [system.MissingMethodException] {"Method not found: 'System.Collections.ICollection SoftwareFX.ChartFX.GalleryObj.Surface.get_Colors()'."} System.MissingMethodException Please suggest the best solution possible.
  4. When i add reference of ChartFX.WinForms.Wrapper and ChartFX.WinForms.Wrapper.Exporter assembly in my project. It does not show these namspaces inside projects(namespace is not displaying in intellisense) hence i can not explore anything(like properties,events,methods) inside these assemblies. Please suggest how can i get these namespaces and theirs members inside a class..
  5. When i add reference of ChartFX.WinForms.Wrapper and ChartFX.WinForms.Wrapper.Exporter assembly in my project. It does not show these namspaces inside projects(namespace is not displaying in intellisense) hence i can not explore anything(like properties,events,methods) inside these assemblies. Please suggest how can i get these namespaces and theirs members inside a class..
  6. When i add reference of ChartFX.WinForms.Wrapper,ChartFX.WinForms.Wrapper.Exporter assembly in my project. It does not show this....
  7. First thing is that we are not using xml file or any kind of file for importing rather we are using a byte array to import. Is there any method like import in exporter assembly like you used in previous example exporter.ExportChart. Looking for an best solution.
  8. While converting ChartFX 6.2 to ChartFX 7.0, i re-wrote a function like: public static void ConvertChartFromBytes(byte[] data, ChartFX.WinForms.Chart Chart) { try { MemoryStream fs = new MemoryStream(data); Chart.Import(fs); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } } It throws an exception after Chart.Import(fs), that shows message like 'Invalid File Format' when i debug this function the i found that value of parameters is passing correct like: data = {Dimensions:[36104]} Chart = {LeftSideChart} (first we set some properties of LeftSideChart and pass it into function) In exception i found following : ex.Message={"Invalid File Format"} ex.Source=ChartFX.WinForms ex.StackTrace: at ChartFX.WinForms.Chart.e(Boolean A_0, IPersistBase A_1, Boolean A_2) at ChartFX.WinForms.Chart.Import(IPersistBase pers) at ChartFX.WinForms.Chart.Import(FileFormat format, Stream stream) at ChartFX.WinForms.Chart.Import(Stream stream) at BTEToolControls.ToolBaseControl.ConvertChartFromBytes(Byte[] data, Chart Chart) in D:\BTETool\Migrated Code\Phoenix\BTEToolControls\ToolBaseControl.cs:line 1281 Plz help that why this function and all the properties worked fine in ChartFX 6.2 and why it is throwing exception now Waiting for your valuable suggestion.
  9. Actually the problem is described below: The AutoScrollMargin and AutoScrollMinSize properties were coming from Windows.Forms.ScrollableControl class which comes in the hierarchy of Chart Class in version 6.2. This ScrollableControl class in turn inherits from Control Class. In version 7.0 the Chart class is directly inheriting from Control class and ScrollableControl is not coming into picture at all. Hence these properties are not available in Chart Object. So how will we utilize these properties in Chart FX 7. Waiting for your valuable feedback.
  10. Thanx for reply Francisco. Yes you are right that there is no OpenData Method in Chart FX 7. Earlier in Chart FX 6.2 it was a method but now in Chart FX 7 it is available as a properties. Now question is as in Chart FX 6.2, When we call OpenData method right after that we call CloseData method but now OpenData method is a property and we can set it, so how can we handle CloseData process in Chart FX 7. Waiting for your feedback.
  11. Hi All, I used Chart FX 6.2 for my application and now i am going to migrate it to Chart FX 7.0. But i am facing some problems described below. 1. How to use SoftwareFX.ChartFX.AutoScrollMargin in Chart FX 7.0 ? 2. How to use SoftwareFX.ChartFX.AutoScrollMinSize in Chart FX 7.0 ?
  12. Hi All, I used Chart FX 6.2 for my application and now i am going to migrate it to Chart FX 7.0. But i am facing some problems described below. 1. CloseData method is not available in Chart FX 7.0 a. How would i close the OpenData method in Chart FX 7.0? b. Would it commit the data automatically or i have to write the code for commit(Please provide the code snippet)? c. What would be the best alternative of CloseData method in Chart FX 7.0? Looking for a good solution Thanx and Regards Kailash Dhondiyal
×
×
  • Create New...