1
Answer

problem while Creating a word document using asp.net.

priya dharshani

priya dharshani

16y
2.1k
1

i add a COM reference to my project by right clicking in the solution explorer on References->Add Reference. Click on the COM tab and look for the Microsoft Word 10.0 Object Library. Click Select and OK.

Then i included the following namespace

using Microsoft.Office.Core;

and typed

Word.ApplicationClass oWordApp = new Word.ApplicationClass();

and i tried to build the application.i am getting the following error.

The type or namespace name 'Word' could not be found (are you missing a using directive or an assembly reference?)

for creating a word document is the presence of microsoft office is compulsory?

Please give me clarification .

Thanks in advance.

 

 


 

Answers (1)