Export will not resize

TeeChart for ActiveX, COM and ASP
Post Reply
PS Soluções
Newbie
Newbie
Posts: 11
Joined: Fri Jun 06, 2008 12:00 am
Location: Brazil
Contact:

Export will not resize

Post by PS Soluções » Tue Apr 20, 2010 6:54 pm

When exporting a chart using chart.Export.asPNG.SaveToStream() the result will always have the same size, even after a chart resize.

Procedure:
1. Create a chart
2. Export using Export.asPNG.SaveToStream(). The resulting image will be the same size as the chart.
3. Resize the chart (or the for that contains it)
4. Export again using Export.asPNG.SaveToStream(). The resulting image will be the same size as the first time, and not the new size.

This bug does not occur when using chart.Export.CopyToClipboardBitmap().

Any suggestions?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Export will not resize

Post by Narcís » Wed Apr 21, 2010 9:34 am

Hello,

Have you tried setting export image dimensions before? For example:

Code: Select all

    With TChart1.Export.asPNG
        .Width = 800
        .Height = 600
        .SaveToFile "C:\temp\AXSize.png"
    End With
Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

PS Soluções
Newbie
Newbie
Posts: 11
Joined: Fri Jun 06, 2008 12:00 am
Location: Brazil
Contact:

Re: Export will not resize

Post by PS Soluções » Thu Apr 22, 2010 1:49 pm

It works. Thanks.

Post Reply