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?
Export will not resize
-
- Newbie
- Posts: 11
- Joined: Fri Jun 06, 2008 12:00 am
- Location: Brazil
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Export will not resize
Hello,
Have you tried setting export image dimensions before? For example:
Hope this helps!
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
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 11
- Joined: Fri Jun 06, 2008 12:00 am
- Location: Brazil
- Contact:
Re: Export will not resize
It works. Thanks.