Yes I am sure. I wrote using Word;
and I write below code but this give me error that missing The name
'missing' does not exist in the class or namespace 'kalite.Word'
ApplicationClas s oWordApp = new ApplicationClas s();
Document oWordDoc = oWordApp.Docume nts.Add(ref missing,
ref missing,ref missing, ref missing);
oWordDoc.Activa te();
oWordApp.Select ion.TypeText("T his is the text");
oWordApp.Select ion.TypeParagra ph();
oWordDoc.SaveAs ("c:\\myfile.do c");
oWordApp.Applic ation.Quit(ref missing, ref missing, ref missing);
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om>, iletide
þunu yazdý news:OR******** ******@TK2MSFTN GP09.phx.gbl...
Selen,
Are you sure that you have set a reference in the project you are
using? Either that, or are you sure that the line is:
Word.Applicatio nClass oWordApp = new Word.Applicatio nClass();
And not:
ApplicationClas s oWordApp = new ApplicationClas s();
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"selen" <sk*****@yahoo. com> wrote in message
news:uE******** ******@TK2MSFTN GP11.phx.gbl... Hello
I add Microsoft Word 10.0 Object Library from reference com.
and I am writing my code to create an instance of a Word application.My code is
Word.Applicatio nClass oWordApp = new Word.Applicatio nClass();
But my application give me error :
The type or namespace name 'ApplicationCla ss' does not exist in the
class or namespace 'kalite.Word' (are you missing an assembly reference?)
Where I am wrong.
Thanks..