#1   Report Post  
Crouchie1998
 
Posts: n/a
Default Create New Word Doc

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
  #2   Report Post  
Beth Melton
 
Posts: n/a
Default

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/


"Crouchie1998" wrote in
message ...
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



  #3   Report Post  
Crouchie1998
 
Posts: n/a
Default

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?

"Beth Melton" wrote:

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/


"Crouchie1998" wrote in
message ...
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




  #4   Report Post  
Crouchie1998
 
Posts: n/a
Default

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?

"Beth Melton" wrote:

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/


"Crouchie1998" wrote in
message ...
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




  #5   Report Post  
Beth Melton
 
Posts: n/a
Default

Sorry, no ideas off the top of my head. You might try asking in a
developer's newsgroup.

--
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/


"Crouchie1998" wrote in
message ...
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?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I divide a page into three sections? Bonnie Microsoft Word Help 3 May 8th 23 02:47 AM
How do I create a hot spot in Word Mark Butler Microsoft Word Help 2 December 14th 04 08:15 PM
How do I reinstall the create Adobe pdf monitor in Word 97? Mark Microsoft Word Help 1 December 11th 04 01:04 AM
How do you create a Word template with permanent text fields? Medical Admin Microsoft Word Help 1 December 9th 04 02:22 AM
saving the workspace Mike Microsoft Word Help 3 December 8th 04 11:32 PM


All times are GMT +1. The time now is 07:07 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"