Paul Smith Posted December 12, 2007 Report Share Posted December 12, 2007 Hi, I have a chart where i am adding the Relative Stength Index and Volume to it. I am attempting to save this to either off the file formats. I am also supply the templateContent and FileContent. The problem is it seems to save ok, but when i reload the chart to recreate RSI and Volume, it doesnt appear.... here is a sample of code i have tried with. Export : chart1.TemplateContents = chart1.TemplateContents | FileContents.Extensions; chart1.Export(FileFormat.Binary, "C:\\chart.bin"); Import: chart1.Import(FileFormat.Binary, "C:\\chart.bin"); Am i doing anything wrong? Thanks, Paul Smith Link to comment Share on other sites More sharing options...
maximop Posted December 12, 2007 Report Share Posted December 12, 2007 There's seems to be a problem importing a financial or statistical chart to a chart that has one of these extensions already added. Please call the Clear() method of the Extensions object before calling the Import() method. You can do as follows: chart1.Extensions.Clear(); chart1.Import( FileFormat.Binary, "D:\\Temp\\StatisticalExport.bin"); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.