how to append MS word in a vb.net project

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Sep 2008
Posts: 22
Reputation: asmit1987 is an unknown quantity at this point 
Solved Threads: 0
asmit1987 asmit1987 is offline Offline
Newbie Poster

how to append MS word in a vb.net project

 
0
  #1
Sep 10th, 2008
hello ppl,
i have a doubt how do i append MSWord in my proj. if i have a form on which i make a button now on clicking that button MSWORD should open. If i use system.diagnostic.process.start() and the whole path of MSWORD in the bracket it will work but what if i want to make it run on some other machine what should be done in that case please help me with a code as soon as possible.
One more thing how do i make a simple combo box uneditable at run time.
please help me as soon as possible by providing codes for both my questons...
thank you.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: how to append MS word in a vb.net project

 
0
  #2
Sep 10th, 2008
1. Just add your msword file on your setup project.
then you can modified path of msword file :
  1. System.Diagnostics.Process.Start(Application.StartupPath & "\MsWordFileName.doc")

2. On combox properties, set DropDownStyle = DropDownList
Last edited by Jx_Man; Sep 10th, 2008 at 6:28 pm.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 22
Reputation: asmit1987 is an unknown quantity at this point 
Solved Threads: 0
asmit1987 asmit1987 is offline Offline
Newbie Poster

Re: how to append MS word in a vb.net project

 
0
  #3
Sep 10th, 2008
I meant to say that i want to open a MSWORD not any wordfile plz help me with that
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 22
Reputation: asmit1987 is an unknown quantity at this point 
Solved Threads: 0
asmit1987 asmit1987 is offline Offline
Newbie Poster

Re: how to append MS word in a vb.net project

 
0
  #4
Sep 10th, 2008
i want to open MSWORD in my project and not any wordfile plz look for it
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 54
Reputation: Pgmer is an unknown quantity at this point 
Solved Threads: 5
Pgmer Pgmer is offline Offline
Junior Poster in Training

Re: how to append MS word in a vb.net project

 
0
  #5
Sep 11th, 2008
You have to add com object reference in your appliction
i.e microsoft word 9.0 object library and in namspace
iimports the word so that you can use the ms word object in ur code as you like
just try it out.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 22
Reputation: asmit1987 is an unknown quantity at this point 
Solved Threads: 0
asmit1987 asmit1987 is offline Offline
Newbie Poster

Re: how to append MS word in a vb.net project

 
0
  #6
Sep 11th, 2008
i understood it but can u tell me that after adding com reference what code do i have to write
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 54
Reputation: Pgmer is an unknown quantity at this point 
Solved Threads: 5
Pgmer Pgmer is offline Offline
Junior Poster in Training

Re: how to append MS word in a vb.net project

 
0
  #7
Sep 11th, 2008
Exactly what u want to do? do u want to automate msowrd?
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 334
Reputation: Prabakar is on a distinguished road 
Solved Threads: 29
Prabakar's Avatar
Prabakar Prabakar is offline Offline
Posting Whiz

Re: how to append MS word in a vb.net project

 
0
  #8
Sep 11th, 2008
do you mean...
System.Diagnostics.Process.Start( "winword" ) ?
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 54
Reputation: Pgmer is an unknown quantity at this point 
Solved Threads: 5
Pgmer Pgmer is offline Offline
Junior Poster in Training

Re: how to append MS word in a vb.net project

 
0
  #9
Sep 12th, 2008
if u just want to open MS Word u can use
system.diagnostic.process.start("winword") no need to give path..
if u want to run in other machine also it works only thing is that machine must have msword installed.
Last edited by Pgmer; Sep 12th, 2008 at 2:22 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 22
Reputation: asmit1987 is an unknown quantity at this point 
Solved Threads: 0
asmit1987 asmit1987 is offline Offline
Newbie Poster

Re: how to append MS word in a vb.net project

 
0
  #10
Sep 12th, 2008
Originally Posted by Pgmer View Post
You have to add com object reference in your appliction
i.e microsoft word 9.0 object library and in namspace
iimports the word so that you can use the ms word object in ur code as you like
just try it out.
i din't get u completely as in can u explain me by send me the code...
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC