User (Legacy) Posted November 17, 2005 Report Share Posted November 17, 2005 Hello, I am using ChartFX Client Server with Access 97. I am trying to load an existing configuration and then use the GetExtension method. As the method returns the data type "unknown", I have to declare the receiving variable as "Variant": dim a as Variant ' load previous annotations chart.Import CHART_CFXOLEFILE, fileName ' try tro get handle set a = chart.GetExtension("AnnotationX.AnnList") ' add further annotations ... This "Variant" type is useless for me, as I can not invoke methods on it. I tried other possibilities, but all of them resulted in Access crashing, e.g.: - call "AddExtension" and afterwards "Import" - call "Import" and afterwards "AddExtension" Do you have any suggestions? Thanks, Florian Link to comment Share on other sites More sharing options...
Software FX Posted November 23, 2005 Report Share Posted November 23, 2005 GetExtension returns a dispatch object (COM), which can be programmed using automation. I don't know much about Access 97, but in VB you do: Dim a as object set a = chart.GetExtension("AnnotationX.AnnList") a.ToolBar = true -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.