Export chart to GIF no longer works after installing Excel 2007b2

E

ExcelFan

I've used the following Visual Basic code in Excel 2000 to export a chart to
GIF. However, after installing Excel 2007b2 I now get errors (method of
export failed) when using the same old code in Excel 2000 and cannot export.
Does anybody know if something has changed?

ActiveSheet.ChartObjects(1).Activate
ActiveChart.Export Filename:="C:\Documents and Settings\user\My
Documents\mychart.gif", filtername:="gif"
 
T

Tushar Mehta

I've used the following Visual Basic code in Excel 2000 to export a chart to
GIF. However, after installing Excel 2007b2 I now get errors (method of
export failed) when using the same old code in Excel 2000 and cannot export.
Does anybody know if something has changed?

ActiveSheet.ChartObjects(1).Activate
ActiveChart.Export Filename:="C:\Documents and Settings\user\My
Documents\mychart.gif", filtername:="gif"
Maybe, installing 2007 Beta2 removed the filter needed to export as a GIF?

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
 
E

ExcelFan

Tushar, thank you for your response.
If the GIF filter was somehow removed by the install of Excel 2007b2, do you
think reinstalling Excel 2000 would be a reasonable fix?

BTW - I believe you helped me with a charting issue many years ago and I'd
just like to thank you for taking the time to help me and the Excel community.
 
T

Tushar Mehta

Tushar, thank you for your response.
If the GIF filter was somehow removed by the install of Excel 2007b2, do you
think reinstalling Excel 2000 would be a reasonable fix?
I don't know if reinstalling XL2000 will cure that problem w/o introducing
other problems. In my case, I tend to install beta products on a separate
machine altogether or at least in a separate instance of Virtual PC.

In general, when installing multiple versions of a product, I tend to
install oldest first. But, all bets are off when it comes to a beta
version.
BTW - I believe you helped me with a charting issue many years ago and I'd
just like to thank you for taking the time to help me and the Excel community.
You are welcome.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
 
J

Jon Peltier

I noticed this problem on one of my computers. The filters in the Microsoft
Shared folder are all newer than Office 2003, dated in 2006. Except for the
TIFF filter, which is still dated 2000, and the export to TIFF still works.
I tried to reinstall Office 2003's filters, but apparently it checks the
file date stamp prior to overwriting, and the files didn't change. I didn't
yet try deleting the filters then reinstalling.

- Jon
 
E

ExcelFan

Jon,
Thank you very much for your insight. It sounds like you're onto something
and I would very much want to give a try at reverting back to the old GIF
filter. However, I must confess, I don't know the location of the shared
folder, nor the name of the gif filter. Can you help?
 
E

ExcelFan

Jon,
I did some further digging and was able to find a solution. I'll include my
solution just in case it might help someone in the community...

Microsoft shared files are located here... C:\Program Files\Common
Files\Microsoft Shared\Grphflt

I simply took an Excel 2000 version of the gif filter (GIFIMP32.FLT) from
another computer and copied it to the above-mentioned directory, thereby
replacing what was an Excel 2007 version of the gif filter.

Now exporting gif's in Excel 2000 is as it has always been, flawless.
I thank you for your help. I couldn't have done it without you.
 
J

Jon Peltier

Pete -

Thanks for following up and sharing your experiences. Have you noticed any
ill effects on 2007?

- Jon
 
J

Jon Peltier

Which version(s) of Excel are installed, and in which order were they
installed (and uninstalled if you removed them)?

I had issues with some of the filters after uninstalling 2007 (which I'd
installed in parallel with 2003). I ended up copying some registry stuff and
some filters from a computer which had not been despoiled by 2007, and
transferred these to the computer with problems, and all is back to normal.

- Jon
 
R

rufus

Office 2003 and OWC both 10 and 11. Worked just fine untill IE7 was installed.
Which filters registry stuff should I look for and where?

Rufus
 
J

Jon Peltier

First, check the filters in
C:\Program Files\Common Files\Microsoft Shared\GRPHFLT

I ultimately copied a filter from another computer into this directory, but
I'll warn you to copy the filters already there in case the swap didn't
help. Below are the registry changes I followed to re-enable TIFF exports
(for some reason exporting didn't work until I'd also included the import
keys). These matched settings in another computer which didn't exist in the
target PC. All the normal caveats apply about backing up the registry first
and being careful about which parts you hack at with a flint axe.

========
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Graphics Filters\Export
Modify string "Image API Enabled Filters", new value to include "TIFF" with
others in space-delimited list
Add key "TIFF"
Add string "Extensions", value "tif"
Add string "Name", value "Tag Image File Format"
Add string "Path", value {path using short file name to the filter}
e.g., "C:\PROGRA~1\COMMON~1\MICROS~1\GRPHFLT\TIFFIM32.FLT"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Graphics Filters\Import
Modify string "Image API Enabled Filters", new value to include "TIFF" with
others in space-delimited list
Add key "TIFF"
Add string "Extensions", value "tif"
Add string "ExtensionsEx", value "tif tiff"
Add string "Name", value "Tag Image File Format"
Add string "Path", value {path using short file name to the filter}
e.g., "C:\PROGRA~1\COMMON~1\MICROS~1\GRPHFLT\TIFFIM32.FLT"
========

- Jon
 
R

rufus

Jon,

I did what you suggested but still no game.

Strange though :

when I use the command : graph.ExportPicture filename, "GIF"
the IE7 error message states: "The specified protocol is unknown"

when I use the command : graph.ExportPicture filename, "xxx"
the IE7 error message states: "unkown type graphic filter"

The first message is in english and I assume this is because I have the
english OS installed. The second message is in dutch which I assume is due
to the fact that my office version is in dutch.

What can we conclude from this strange result?

thanks for your efforts and time BTW ;)
 
J

Jon Peltier

In my case, PNG and GIF were working but TIF was not. I followed the
protocol and was able to make TIF work, but I was unsuccessful following the
same for BMP.

Once localization issues come into play I am not competent to comment
further. I have a set of utilities that work great on English machines but
behave erratically in various foreign versions.

- Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top