Oracle Forms (MOSC)

MOSC Banner

ole2 question about inserting document object in Word

edited Apr 8, 2010 9:22PM in Oracle Forms (MOSC) 1 commentAnswered
 I thought I had it figured out but it doesn't seem to work. From a Oracle Forms 6i application, I want to insert an object(a file) in a word document as an icon.

The vb code generated when I record the macro of inserting an object as an icon is:

Selection.InlineShapes.AddOLEObject ClassType:="Word.Document.8", FileName _
        :="string defining the location of the file object", LinkToFile:=False _
        , DisplayAsIcon:=True, IconFileName:= _
        "C:\WINDOWS\Installer\{90110409-6000-11D3-8CFE-0050048383C9}\wordicon.exe" _
        , IconIndex:=1, IconLabel:= _
        "string defining the location of the file object"

Using this I wrote the following code: ( I am leaving out the declaration of the ole2.obj_type and other variables)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center