Page 1 of 1

Color band in PDF export

Posted: Fri Oct 30, 2009 8:45 pm
by 15051059
Hi,

I have color band on my chart. However, when I export to PDF, the color band does not get drawn. Is there a workaround?

Re: Color band in PDF export

Posted: Mon Nov 02, 2009 10:31 am
by yeray
Hi Raymond,

There is a bug already in the wish list that says that the patterns for this tool aren't exported fine to pdf (TV52011702). The colorband is drawn but in white. Is that what you mean?

Re: Color band in PDF export

Posted: Mon Nov 02, 2009 5:41 pm
by 15051059
Hi,
Yea, I suppose the color band is not being drawn at all because if I change the backwall color, the export shows the backwall color.

Re: Color band in PDF export

Posted: Tue Nov 03, 2009 9:11 am
by yeray
Hi Raymond,

Are you using the v8.0.0.7 that is the latest version available? Here the following code gives the same result: A ColorBand in white.

Code: Select all

Private Sub Form_Load()
  TChart1.Aspect.View3D = False

  TChart1.AddSeries scPoint
  TChart1.Series(0).FillSampleValues 25
  
  TChart1.Tools.Add tcColorband
  TChart1.Tools.Items(0).asColorband.Axis = TChart1.Axis.Bottom
  TChart1.Tools.Items(0).asColorband.StartValue = 10
  TChart1.Tools.Items(0).asColorband.EndValue = 15
  
  TChart1.Export.asPDF.SaveToFile "C:\tmp\ColorBand.pdf"
  
  TChart1.Tools.Items(0).asColorband.Brush.Style = bsBDiagonal
  
  TChart1.Export.asPDF.SaveToFile "C:\tmp\ColorBandBrush.pdf"
End Sub