Issue with export to EMF/WMF on high DPI displays

TeeChart for ActiveX, COM and ASP
Post Reply
sfree82
Newbie
Newbie
Posts: 4
Joined: Thu Aug 09, 2007 12:00 am
Contact:

Issue with export to EMF/WMF on high DPI displays

Post by sfree82 » Thu Aug 02, 2018 1:46 pm

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 22082 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?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

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

Post by Sandra » Tue Aug 07, 2018 12:54 pm

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
Best Regards,
Sandra Pazos / 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

Marc
Site Admin
Site Admin
Posts: 1209
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

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

Post by Marc » Tue Aug 07, 2018 3:25 pm

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
Steema Support

Post Reply