Hi !
You can use SaveToFile and LodFromFile to export / import TEE files. But is there a possibility to import / export XML?
And second question ... Can I use a String which includes the XML stuff and TChart generates the Chart from that?
Export AND Import XML?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi moelski,
uses TeeStore;
procedure TForm1.FormCreate(Sender: TObject);
var stream: TMemoryStream;
begin
stream:=TMemoryStream.Create;
try
SaveChartToXMLStream(TCustomChart(Chart1),stream,true,true);
finally
stream.Free;
end
end;
You can also export chart's data to an XML fiile as shown in the features demo and tutorials.
You can export a chart to XML using SaveChartToXMLStream or SaveChartToXMLFile, for example:You can use SaveToFile and LodFromFile to export / import TEE files. But is there a possibility to import / export XML?
uses TeeStore;
procedure TForm1.FormCreate(Sender: TObject);
var stream: TMemoryStream;
begin
stream:=TMemoryStream.Create;
try
SaveChartToXMLStream(TCustomChart(Chart1),stream,true,true);
finally
stream.Free;
end
end;
You can also export chart's data to an XML fiile as shown in the features demo and tutorials.
You can not import full chart settings from XML except you do it manually. However, you can import chart's series and data from an XML file as shown in the All Features\Welcome!\Components\XML Import source example at the new features demo.And second question ... Can I use a String which includes the XML stuff and TChart generates the Chart from that?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |