User (Legacy) Posted November 13, 2003 Report Share Posted November 13, 2003 We are using the Client Server edition of ChartFX. The chart object are serialized into a file. Is there a way that we can get the visible status of the annotation toolbar when we recreate the chart? Thanks Link to comment Share on other sites More sharing options...
Software FX Posted November 13, 2003 Report Share Posted November 13, 2003 You can use the Extensions property and loop trough it to get a reference Annotation extension that was read, search for it by Type. Then you can use the annotation.ToolBar property to determine whether the toolbar is on or off. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 14, 2003 Author Report Share Posted November 14, 2003 I am sorry that I did not mention I am using VC++. The GetExtension(_bstr_t("AnnotationX.AnnList")) always crashes ( I have the latest service pack). ReadFileFromArchive(ar, sFileName); m_pChartFX->Import(CHART_CFXOLEFILE, (_variant_t)sFileName); m_pAnnList = m_pChartFX->GetExtension("AnnotateX.AnnList"); The run-time error message is: KERNEL32! 7c59ba9d() MSVCRTD! _CxxThrowException@8 + 57 bytes _com_error::_com_error(_com_error * const 0x00000000 {???}, long -2147221005, IErrorInfo * 0x00000000, unsigned char 0) address 0x025775a9 _com_issue_errorex(long -2147221005, IUnknown * 0x00000000, const _GUID & {????????-????-????-????-????????????}) + 93 bytes _com_issue_errorex(long -2147221005, IUnknown * 0x00000000, const _GUID & {IID_IChartFX}) + 93 bytes IChartFX::GetExtension(_bstr_t {"AnnotateX.AnnList" (1)}) line 1624 Did I miss anything here? Thanks. Jun Xia "SoftwareFX Support" <support@softwarefx.com> wrote in message news:Euj7GoiqDHA.1560@WEBSERVER1... > You can use the Extensions property and loop trough it to get a reference > Annotation extension that was read, search for it by Type. Then you can use > the annotation.ToolBar property to determine whether the toolbar is on or > off. > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted November 17, 2003 Report Share Posted November 17, 2003 The correct call would be: m_pAnnList = m_pChartFX->GetExtension("AnnotationX.AnnList"); -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.