Page 1 of 1

SaveToJPEGFile() Error

Posted: Thu Dec 29, 2011 4:29 am
by 9523580
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.

Re: SaveToJPEGFile() Error

Posted: Thu Dec 29, 2011 3:47 pm
by yeray
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 5624 times
Please, check the differences between how do you produce both images and try to explain them.