Color band in PDF export

TeeChart for ActiveX, COM and ASP
Post Reply
Raymond
Newbie
Newbie
Posts: 27
Joined: Tue Dec 02, 2008 12:00 am

Color band in PDF export

Post by Raymond » Fri Oct 30, 2009 8:45 pm

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?

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Color band in PDF export

Post by Yeray » Mon Nov 02, 2009 10:31 am

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Raymond
Newbie
Newbie
Posts: 27
Joined: Tue Dec 02, 2008 12:00 am

Re: Color band in PDF export

Post by Raymond » Mon Nov 02, 2009 5:41 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Color band in PDF export

Post by Yeray » Tue Nov 03, 2009 9:11 am

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply