Loading EPS file into Word automatically?

G

Generic Admin

I have a user that simply wants to view EPS files. I've tried out
Ghostview and one other (sorry, can't remember the name), but they
were a little buggy and annoying with the nag screens. Since there is
an EPS converter for Microsoft Word, I am trying to create a macro
that works in conjunction with a custom 'File Type' to open and
convert the EPS file simply by double-clicking it.

I ran across numerous macroes that will go immediately to the 'Insert
Picture' dialog when ran. I then create a shortcut using the /m
switch so the user can just double-click that to immediately open Word
and then select the file to open. However, I want to make it as
simple as possible. I want to take it one step further.

By going into File Types, I can see a little bit of how a file is
opened based on its extension. For example, for the default
'Application used to perform action:' in 'Open' for DOC file types, I
have: "D:\Microsoft Office\Office10\WINWORD.EXE" /n /dde "%1". The
'%1' is a variable of sorts that I'm assuming is the filename passed
when you double-click a DOC file. Is there a way I can use that
variable in a macro? I am also assuming I would need to use the /m
switch on the same line in order to invoke the macro.
 
S

Suzanne S. Barnhill

Word cannot *open* EPS files; it can only *import* them using Insert |
Picture | From File. It has graphics import filters for them but not file
conversion filters.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
G

Generic Admin

Suzanne S. Barnhill said:
Word cannot *open* EPS files; it can only *import* them using Insert |
Picture | From File. It has graphics import filters for them but not file
conversion filters.

Well I know that, but what I'm trying to do is workaround that
seemingly arbitrary limitation. The question still stands.. how can I
pass the variable used in File Types through to a macro within Word
(DDE?).
 

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