|
-
July 9th, 2007, 06:04 PM
#1
Run word application
Hi All ,
i just need to add a button to my application called "Word"
when the user click it it opens the word appliaction.
i cann add microsoft word refreance to my appliaction , but what to do after that ?
-
July 9th, 2007, 06:45 PM
#2
Re: Run word application
If you want just to open Ms Word and not interact with you can use the simple process class:
Code:
Process notePad = new Process();
notePad.StartInfo.FileName = "notepad.exe";
notePad.StartInfo.Arguments = "me.txt";
notePad.Start();
Else read this
Bogdan
If someone helped you then please Rate his post and mark the thread as Resolved
Please improve your messages appearance by using tags [ code] Place your code here [ /code]
-
July 10th, 2007, 02:19 AM
#3
Re: Run word application
i tried your code but it gives me this error
The type or namespace name 'Process' could not be found (are you missing a using directive or an assembly reference?)
although i have addes the following using :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using Microsoft.Office;
using Microsoft.Office.Core;
using System.Runtime.InteropServices;
using Word = Microsoft.Office.Interop.Word;
using System.IO;
-
July 10th, 2007, 03:12 AM
#4
Re: Run word application
Process class belongs to System.Diagnostics namespace.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|