User (Legacy) 2 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 Quote Link to post Share on other sites
Software FX 0 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 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.