Click to See Complete Forum and Search --> : Word


ZAKHURST
May 3rd, 2001, 02:18 PM
How do create an applications that you can insert into a word document using word->insert->object object type ?

Cakkie
May 4th, 2001, 02:30 AM
This will insert a new empty bitmap in the document


set WA = CreateObject("Word.Application")
WA.Visible = true

set Doc = WA.Documents.Add()

Doc.Shapes.AddOLEObject ClassType:="Paint.Picture", FileName:="", _
LinkToFile:=false, DisplayAsIcon:=false




Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook

ZAKHURST
May 4th, 2001, 03:46 PM
Many thanks but what I am really after is the ability to create an application that word will recognise in its list of object types.