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 ?
Printable View
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 ?
If you want just to open Ms Word and not interact with you can use the simple process class:
Else read thisCode:Process notePad = new Process();
notePad.StartInfo.FileName = "notepad.exe";
notePad.StartInfo.Arguments = "me.txt";
notePad.Start();
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;
Process class belongs to System.Diagnostics namespace.