Page 1 of 1

Issue with export to EMF/WMF on high DPI displays

Posted: Thu Aug 02, 2018 1:46 pm
by 15046369
When running on displays that have DPI scaling enabled (i.e. 125% or 150%, etc.) the export of the charts to EMF or WMF format appear smaller than the original, however the overall image size is the correct dimensions so you get a smaller chart appearing in the top left of an image. Is there a way to get this type of export to work correctly on systems that have the system wide zoom factor set to anything other than 100%? This issue happens with Windows 7, 8 and 10.
wmf-export-copied-to-word-doc.PNG
wmf-export-copied-to-word-doc.PNG (95.36 KiB) Viewed 13238 times
Exporting to other format such as PNG, BMP or JPG does not have this issue with scaling, however the application this is being used with requires the exported images to have a transparent background. I tried PNG format as this should support alpha transparency however I can't find a way to create an exported image of a chart with a transparent background from TeeChart - is this possible with any other format other than EMF/WMF?

Re: Issue with export to EMF/WMF on high DPI displays

Posted: Tue Aug 07, 2018 12:54 pm
by 10050769
Hello sfree82,

We're working with your DPI scaling questions.

Before export to PNG you should do Transparent the Chart Background. I would like suggest you read the How to make a transparent chart with TeeChart Pro Activex article to achieve do that.

Thanks in advance

Re: Issue with export to EMF/WMF on high DPI displays

Posted: Tue Aug 07, 2018 3:25 pm
by Marc
Hello,

With respect the DPI question, please take a look at this thread:

viewtopic.php?f=3&t=16959#p75510

The example code is written for Delphi but the principle is the same applied to the TeeChart ActiveX control.

Regards,
Marc Meumann