Create New Word Doc

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how to create a new Word Document in VB.NET 2003 without
adding a reference to the Word Object Model?

I want to create it from scratch
 
You might be able to use the Shell function to start winword.exe. I
recommend using the /w startup switch which will start a new instance
of Word. Otherwise if there is an instance already running it will
simply switch to the current instance and it will not create a new
document.

But that's all you'll get - a new blank document. If you want add
content to the document you'll need the reference to the Word Object
Model. If what you are worried about is various versions of Word and
invalid references then research the various methods you can use to
obtain the version of Word that is installed and code the project
accordingly.
--
Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/
 
Thank you for your reply, but you misunderstood what I mean

I am a programmer & have been for 25 years. Have been programming using
Office too since 1997 and know how to create a new word doc using the object
model...

I want to be able to create a New Word Doc without Word/Office installed on
the machine. Basically, code it totally from scratch

Any ideas Beth?
 
Thank you for your reply, but you misunderstood what I mean

I am a programmer & have been for 25 years. Have been programming using
Office too since 1997 and know how to create a new word doc using the object
model...

I want to be able to create a New Word Doc without Word/Office installed on
the machine. Basically, code it totally from scratch

Any ideas Beth?
 
Back
Top