Results 1 to 2 of 2

Thread: Word Document

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Posts
    3

    Post

    I want to create a new word document in my
    VB Application and edit it to contain the results of an SQL query. I've been using
    CreateObject(Word.Basic) but I get a "Active X cannot create document" message when i try this. Why?

  2. #2
    New Member
    Join Date
    Aug 1999
    Location
    Kuala Lumpur, WP, Malaysia
    Posts
    3

    Post

    Firstly, do you have MS Word installed at you PC.
    If you do, maybe you can try this

    Dim wd as object

    set wd = createObject("Word.Application")

    wd.documents.add [document name]
    .
    .
    .

    wd.activedocument.close 0 (no save)
    wd.quit 0


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