SaveToJPEGFile() Error

TeeChart for ActiveX, COM and ASP
Post Reply
Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

SaveToJPEGFile() Error

Post by Seth » Thu Dec 29, 2011 4:29 am

I have a problem using GetExport().SaveToJPEGFile() of TeeChart.

I'm using TeeChart ver 7.0.1.5.
There are two captures were made GetExport().SaveToJPEGFile() method.
They were using same program.

Look at this picture. It is normal.
Image

Another Picture.
It is error image.
Image

An Additional explanation,
[normal case]
: can be seen on the screen and be used GetExport().SaveToJPEGFile()
[error case]
: can't be seen on the screen and be used GetExport().SaveToJPEGFile()

I'll be waiting for your answer.

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

Re: SaveToJPEGFile() Error

Post by Yeray » Thu Dec 29, 2011 3:47 pm

Hi Seth,

Maybe you are just calling the SaveToJPEGFile function with inappropriate arguments. The following example made with VB6 and TeeCahrt v7 seems to work fine:

Code: Select all

Private Sub Form_Load()  
  TChart1.Aspect.View3D = False
  
  Dim i As Integer
  For i = 0 To 1
    TChart1.AddSeries scLine
    TChart1.Series(i).asLine.Pointer.Visible = True
    TChart1.Series(i).FillSampleValues 25
  Next i
  
  TChart1.Export.SaveToJPEGFile "C:\tmp\test.jpg", False, jpegBestQuality, 80, 600, 400
End Sub
test.jpg
test.jpg (46.28 KiB) Viewed 5557 times
Please, check the differences between how do you produce both images and try to explain them.
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