Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
B B is offline
external usenet poster
 
Posts: 17
Default export chart as wmf

I have a chart which I am attempting to export as an image but it is not
working, it exports as png, gif, jpg, but not wmf. Here is the code:

Dim c As Chart

Set c = Worksheets(1).ChartObjects(1).Chart

c.Export "C:\tmp\chart1.wmf", "WMF"

I have downloaded the graphic filter WMFIMP32.FLT and saved it to C:\Program
Files\Common Files\Microsoft Shared\GRPHFLT , but it still doesn't work.

Any ideas?

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default export chart as wmf

Chart.Export only works with selected raster formats (bmp, jpg, gif, png,
tif), but not vector formats. You could paste the chart into PowerPoint as a
graphic, then save it as a metafile using PowerPoint. I don't have code
handy to do this.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"b" wrote in message
...
I have a chart which I am attempting to export as an image but it is not
working, it exports as png, gif, jpg, but not wmf. Here is the code:

Dim c As Chart

Set c = Worksheets(1).ChartObjects(1).Chart

c.Export "C:\tmp\chart1.wmf", "WMF"

I have downloaded the graphic filter WMFIMP32.FLT and saved it to
C:\Program
Files\Common Files\Microsoft Shared\GRPHFLT , but it still doesn't work.

Any ideas?

thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i export a pivot chart as a static chart object? James Charts and Charting in Excel 2 November 11th 08 10:05 PM
Export pie chart to PDF Pie chart1 Charts and Charting in Excel 0 October 1st 08 07:27 PM
Chart.Export images are shrinking as I export more images Jared Charts and Charting in Excel 3 January 29th 08 03:23 AM
export chart - what controls exported chart width Art Parra Excel Programming 2 December 6th 04 04:35 AM
Export chart to .bmp Frank Kabel Excel Programming 1 August 12th 04 02:55 PM


All times are GMT +1. The time now is 07:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"