944,005 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 2131
  • VB.NET RSS
You are currently viewing page 1 of this multi-page discussion thread
Sep 10th, 2008
0

how to append MS word in a vb.net project

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
asmit1987 is offline Offline
22 posts
since Sep 2008
Sep 10th, 2008
0

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

1. Just add your msword file on your setup project.
then you can modified path of msword file :
vb Syntax (Toggle Plain Text)
  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.
Reputation Points: 1182
Solved Threads: 393
Posting Sensei
Jx_Man is offline Offline
3,145 posts
since Nov 2007
Sep 10th, 2008
0

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

I meant to say that i want to open a MSWORD not any wordfile plz help me with that
Reputation Points: 10
Solved Threads: 0
Newbie Poster
asmit1987 is offline Offline
22 posts
since Sep 2008
Sep 10th, 2008
0

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

i want to open MSWORD in my project and not any wordfile plz look for it
Reputation Points: 10
Solved Threads: 0
Newbie Poster
asmit1987 is offline Offline
22 posts
since Sep 2008
Sep 11th, 2008
0

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

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.
Reputation Points: 51
Solved Threads: 112
Practically a Master Poster
Pgmer is offline Offline
672 posts
since Apr 2008
Sep 11th, 2008
0

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

i understood it but can u tell me that after adding com reference what code do i have to write
Reputation Points: 10
Solved Threads: 0
Newbie Poster
asmit1987 is offline Offline
22 posts
since Sep 2008
Sep 11th, 2008
0

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

Exactly what u want to do? do u want to automate msowrd?
Reputation Points: 51
Solved Threads: 112
Practically a Master Poster
Pgmer is offline Offline
672 posts
since Apr 2008
Sep 11th, 2008
0

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

do you mean...
System.Diagnostics.Process.Start( "winword" ) ?
Reputation Points: 94
Solved Threads: 33
Posting Whiz
Prabakar is offline Offline
342 posts
since May 2008
Sep 12th, 2008
0

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

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.
Reputation Points: 51
Solved Threads: 112
Practically a Master Poster
Pgmer is offline Offline
672 posts
since Apr 2008
Sep 12th, 2008
0

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

Click to Expand / Collapse  Quote originally posted by Pgmer ...
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...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
asmit1987 is offline Offline
22 posts
since Sep 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Help with project
Next Thread in VB.NET Forum Timeline: Program Challenges





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC