Page 1 of 1

Export will not resize

Posted: Tue Apr 20, 2010 6:54 pm
by 15049316
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?

Re: Export will not resize

Posted: Wed Apr 21, 2010 9:34 am
by narcis
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!

Re: Export will not resize

Posted: Thu Apr 22, 2010 1:49 pm
by 15049316
It works. Thanks.