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 1966

Summary: Back wall gradient visibility isn't exported to native
Product: ActiveX TeeChart Reporter: yeray alonso <yeray>
Component: ExportingAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=1&t=16790
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2018-01-15 03:54:14 EST
Native export doesn't include Walls.Back.Brush.Gradient.Visible.

Ie, with two charts and a button on a form and this code, the default gradient is lost and the back looks different:

Private Sub Form_Load()  
  TChart1.Aspect.View3D = False
  TChart1.Legend.Visible = False
  TChart1.AddSeries scLine
  TChart1.Series(0).FillSampleValues
End Sub

Private Sub Command1_Click()
  TChart2.Import.LoadFromStream TChart1.Export.asNative.SaveToStream(True)
End Sub

A workaround is to manually copy the property, ie:

TChart2.Walls.Back.Brush.Gradient.Visible = TChart1.Walls.Back.Brush.Gradient.Visible

But this workaround has only sense when you still have access to the original chart, what can be impossible specially when you are working with .tee files.

Note this problem is probably related to #1015 as it worked fine until v2016.0.0.0:

http://bugs.teechart.net/show_bug.cgi?id=1015

Also note this is correctly exported in VCL. You can compare VCL and ActiveX outputs easily using the "View" button at the "Export\Native" tab in the respective editors at runtime.