Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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 | |
|
|
![]() |
||||
Thread | Forum | |||
How can I divide a page into three sections? | Microsoft Word Help | |||
How do I create a hot spot in Word | Microsoft Word Help | |||
How do I reinstall the create Adobe pdf monitor in Word 97? | Microsoft Word Help | |||
How do you create a Word template with permanent text fields? | Microsoft Word Help | |||
saving the workspace | Microsoft Word Help |