Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 919

Summary: Error when assigning ttfHtml TextFormat to an Annotation tool
Product: ActiveX TeeChart Reporter: yeray alonso <yeray>
Component: Chart ToolsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: basset3, sandra
Priority: High    
Version: TeeChart Pro Activex Control v2014 v2014.0.0.1 Release   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=1&t=15172
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2014-09-15 09:38:21 EDT
The code below gives this error message when trying to assign ttfHtml TextFormat.

Run-time error '-2147418113 (8000ffff):
Method 'TextFormat' of object 'ITextShape' failed


  TChart1.Header.Text.Clear
  TChart1.Header.Text.Add TChart1.Version
  TChart1.Aspect.View3D = False

  TChart1.AddSeries scPoint
  TChart1.Series(0).FillSampleValues 5
  
  TChart1.Tools.Add tcAnnotate
  TChart1.Tools.Items(0).asAnnotation.Text = "Hello Annotation"
  TChart1.Tools.Items(0).asAnnotation.Shape.TextFormat = ttfHtml

Reproducible with TeeChart ActiveX v2014.0.0.1, and v2014.0.0.2 beta but worked fine with v2013.0.1.4.
Can't reproduce it either with TeeChart VCL v2014.11, nor with the current sources.
Comment 1 sandra pazos 2015-06-18 11:17:22 EDT
The problem is fixed for TeeChart Activex v2015.0.0.2