Printing error

TeeChart for ActiveX, COM and ASP
Post Reply
Slacker
Newbie
Newbie
Posts: 1
Joined: Fri Feb 01, 2002 5:00 am
Location: USA
Contact:

Printing error

Post by Slacker » Fri May 07, 2004 10:30 pm

ActiveX 5.0 printing problem when printing a chart with several text annotations on it. "Range Check Error" appears after selecting "print or print preview"

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon May 10, 2004 12:20 pm

Hi,

which TeeChart version are you using ? I've tried to reproduce the problem here using the following code
with the latest v6.05 and it works fine.

Code: Select all

Private Sub Form_Load()
With TChart1
    .AddSeries scLine
    .Series(0).FillSampleValues (10)
    For i = 0 To 5
      .Tools.Add tcAnnotate
      .Tools.Items(i).asAnnotation.Text = "Annotation " & i
      .Tools.Items(i).asAnnotation.Shape.Left = .Tools.Items(i).asAnnotation.Shape.Left + (100 * i)
    Next i
End With
End Sub

Private Sub Preview_Click()
TChart1.Printer.ShowPreview
End Sub

Private Sub Print_Click()
TChart1.Printer.PrintChart
End Sub

Post Reply