EXPORT method and finding filters (converters)

J

John

The EXPORT method uses filters (converters).

Filters are stored in the XP folder
C:\Program Files\Common Files\Microsoft Shared\Grphflt

Is there a dialog somewhere I can call up which tells me what filters are
installed instead of having to go to the above directory and figuring out
what's there?

Thank you for the feedback.
 
S

Steve Rindsberg

The EXPORT method uses filters (converters).

Filters are stored in the XP folder
C:\Program Files\Common Files\Microsoft Shared\Grphflt

Is there a dialog somewhere I can call up which tells me what filters are
installed instead of having to go to the above directory and figuring out
what's there?

I don't believe so.

And since not all exports use external filters, knowing what's in that
directory wouldn't necessarily tell you what you want to know.

Sometimes beating it with the bruteforce bat is satisfying:

Sub WhatFilters()

Dim rayFilter(1 To 5) As String
Dim x As Long

rayFilter(1) = "GIF"
rayFilter(2) = "PNG"
rayFilter(3) = "BMP"
rayFilter(4) = "EPS" ' deliberately, since there won't be one
rayFilter(5) = "WMF"

For x = 1 To UBound(rayFilter)

On Error Resume Next
ActivePresentation.Slides(1).Export _
"c:\temp\name." _
& rayFilter(x), _
rayFilter(x)
If Err.Number <> 0 Then
Debug.Print rayFilter(x) & " not working or not present"
Err.Clear
End If
Next x
End Sub
 

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