Very important: What OLE Server replaced MS Photo Editor?

  • Thread starter Scott Pendleton
  • Start date
S

Scott Pendleton

If you use VBA to add a photo to a Word document, you have to have the OLE
Server, MS Photo Editor, installed or else the photo will be inserted as a
"package object" icon instead of as a photo.

However, Office 2003 and onward automatically removes MS Photo Editor
because Microsoft replaced it with Photo Organizer (or some such thing). But
the replacement software evidently does not act as an OLE Server. So to have
photos inserted as photos, you have to go back and reinstall MS Photo Editor.

What's the Microsoft-recommended action to clear up the situation?
 
B

Bob Buckland ?:-\)

Hi Scott,

You may want to use the link below to also post this in the Word Programming discussion group. In general pictures aren't inserted
in Word as Objects (Insert=>Object), because of the overhead but via Insert=>Picture=>From File, which may preclude the issue you're
seeing. The setting in Word 2003 for Tools=>Options=>Edit for 'Picture Editor' defaults to Word after Word 2002.


==============
If you use VBA to add a photo to a Word document, you have to have the OLE
Server, MS Photo Editor, installed or else the photo will be inserted as a
"package object" icon instead of as a photo.

However, Office 2003 and onward automatically removes MS Photo Editor
because Microsoft replaced it with Photo Organizer (or some such thing). But
the replacement software evidently does not act as an OLE Server. So to have
photos inserted as photos, you have to go back and reinstall MS Photo Editor.

What's the Microsoft-recommended action to clear up the situation?>>
--
Please let us know if this has helped,

Bob Buckland ?:)
MS Office System Products MVP

LINKS
A. Specific newsgroup/discussion group mentioned in this message:
news://msnews.microsoft.com/microsoft.public.word.programming
or via browser:
http://microsoft.com/communities/newsgroups/en-us/?dg=microsoft.public.word.programming

B. MS Office Community discussion/newsgroups via Web Browser
http://microsoft.com/office/community/en-us/default.mspx
or
Microsoft hosted newsgroups via Outlook Express/newsreader
news://msnews.microsoft.com
 
S

Scott Pendleton

On the one hand you refer my question to the Programming sub-newsgroup, andon
the other you talk about menu selections, as if programming were not involved
but rather a user interface question...

Let's get right to the code that gives me a package object instead of a photo:

Dim oWord as New Word.Application
Dim oDoc as New Word.Document
Dim oRange as Word.Range
Set oRange = oDoc.Content
oDoc.InlineShapse.AddOLEObject
DisplayAsIcon:=False,Filename:="C:\MyPhoto.jpg",Range:=oRange

If you do not have Microsoft Photo Editor installed, Word will not recognize
the Jpeg and so will insert it into your document as a Package Object,
represented by an icon, instead of as a photo that is displayed as a photo.

Now, if some other OLE Server were associated with JPEGs, then I'm sure that
would work fine instead of MS Photo Editor. So, is there one for Office 2003+
users? Or do they have to go back and reinstall MS Photo Editor?

Hope this is more clear.

Thanks,
Scott
 
R

Robert M. Franz (RMF)

Hello Scott

Scott said:
On the one hand you refer my question to the Programming sub-newsgroup, andon
the other you talk about menu selections, as if programming were not involved
but rather a user interface question...

that's why this really is not a programming newsgroup. :)

So, if you want to talk VBA, as Bob suggests, one of the .vba newsgroups
might yield a better result -- or else, there is
microsoft.public.word.oleinterop ...

But from a general POV: why do you want to insert a JPEG as an OLE
object in the first place? This is by no means obvious, especially since
you usually don't want to enable your users to change the picture you've
invested time and code to insert.

2¢
Robert
 

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