Click here to Skip to main content
15,904,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a C# app which creates an Word Doc. This is all working fine on my development box which turns out to have MS Office 2007installed. The app works fine. I added a reference to Microsoft Office 12.0 Object Library under the COM tab when I did the "Add Reference". I also copiedthe Interop.Word.dll to my BIN folder.The Client Machine I need to deploy my app to does not have MS Office or Word installed.
When i Run Application the Following Error Came

CSS
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class Not Register

Any Solutions For Above Issue its Urgent...

Should I Install MS-Office to client machine.


Vijay
Posted
Updated 28-Aug-12 1:02am
v2
Comments
Tejas Vaishnav 28-Aug-12 7:03am    
it's seemes like your word interop object is not register properly that's why you can not create your word interop object and it will threw error.
Vijay Selvaraj 28-Aug-12 7:05am    
can you please help me how to register those file..
Tejas Vaishnav 28-Aug-12 7:08am    
please check the posted solution it might helps you to solve that thing.
Vijay Selvaraj 28-Aug-12 7:16am    
can you tell me should i install ms office to client machine to run this to open Word Application from c#
Tejas Vaishnav 28-Aug-12 7:29am    
no you can install only office PIA to client machine then it will work for you.
you can download it from
2007
http://www.microsoft.com/en-in/download/details.aspx?id=18346
2010
http://www.microsoft.com/en-in/download/details.aspx?id=3508

When you are creating/editing the Microsoft Office Documents, always prefer Office Open XML SDK. This does not require Office installation on any of the machines. All office documents (word, excel, powerpoint) (2007 onwards) are xml packages. So, this SDK allows you to create or modify these packages using programs. This approach is far better than interops approach. Time taken to create/modify the documents is less as compared with that of interops. Also, you can process multiple requests at a time (this is certainly not possible with Interops).

Visit open xml developer forum to know more about this,
 
Share this answer
 
Comments
Vijay Selvaraj 28-Aug-12 7:45am    
no i displayed Maths Equations so thats why i need MS-Word

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900