Results 1 to 2 of 2

Thread: changing word doc without opening

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    15

    Smile changing word doc without opening

    hi guys,
    is there a way of changing a word document (new or previous) without first opening it? Such that it all occurs in the background.

    Thanks,
    Zaff

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    Unless you know the file format exactly - not really.

    However if the user (or you) has word installed - you could automate, and open a hidden word application, open the doc, do changes etc, save, close doc, close hidden word...

    You'd need either references (but this means your target audience must have the same references installed in their comp) or use GetObject / CreateObject functions and get the Word.Application.

    Have a read in the help files and try some code. If it doesn't work right then, post up your code, people will help you then.


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

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