CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Word

  1. #1
    Join Date
    May 2001
    Posts
    4

    Word

    How do create an applications that you can insert into a word document using word->insert->object object type ?


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Word

    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
    [email protected]

    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
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    May 2001
    Posts
    4

    Re: Word

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured