Retreiving TChart from an OLE\Long Binary field from Access
Posted: Fri May 27, 2005 1:55 am
Hi Newsgroup,
I've constructed an application that creates hundreds of charts. Each chart is stored in an OLE\Long Binary field in MS Access 2003 (Jet 40 Database actually).
I'm able to insert the charts as such;
System.IO.MemoryStream _graph = new System.IO.MemoryStream();
this.tcmap.Export.Template.Save(_graph);
byte[] mapbuffer = this._graph.GetBuffer();
//Then perform the insert.
Question, how do I retrieve the graph from the OLE\Long Binary field into an object varible of some sort to be placed onto the windows form with the TeeChart assembly on it? To do the reverse of the above isn't quite apparent.
Using C# 2003, OleDb namespace and Access 2003 backend.
Many Thanks NewsGroup.
Regards,
2DScatterPlot.
I've constructed an application that creates hundreds of charts. Each chart is stored in an OLE\Long Binary field in MS Access 2003 (Jet 40 Database actually).
I'm able to insert the charts as such;
System.IO.MemoryStream _graph = new System.IO.MemoryStream();
this.tcmap.Export.Template.Save(_graph);
byte[] mapbuffer = this._graph.GetBuffer();
//Then perform the insert.
Question, how do I retrieve the graph from the OLE\Long Binary field into an object varible of some sort to be placed onto the windows form with the TeeChart assembly on it? To do the reverse of the above isn't quite apparent.
Using C# 2003, OleDb namespace and Access 2003 backend.
Many Thanks NewsGroup.
Regards,
2DScatterPlot.