Strange uidoc.CreateObject behavior

Hi everyone!

Faced strange behavior of uidoc’s CreateObject method.

I want to place a JPEG file to a rich text field.

On some computers CreateObject creates an attachment, on others - embeds a huge bitmap.

Why?

Thanks in advance,

Dmitry.

Subject: RE: Strange uidoc.CreateObject behavior

It probably has a lot to do with what application is registered as the editor for JPEG files on the particular system. An OLE object is related to a particular application – not to a file.