Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Cant Open Word Document in dnnCant Open Word Document in dnn
Previous
 
Next
New Post
7/27/2009 2:40 AM
 

i got error like this

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.

The following code is prefectly working in asp.net framework but not working in dnn

i cant fix this problem, anybody help me

code sample

------------------

 

 

missing = System.Reflection.Missing.Value;object readonlyobj = false;object visi = true;object filename = @"C:\Documents and Settings\Muthamilselvi.MANOHA\Desktop\file1.doc";Application appWord = new Word.Application();Document docWord = new Word.Document();ref filename, ref missing, ref readonlyobj, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref visi, ref missing, ref missing, ref missing, ref missing);"This is the text");ref missing, ref missing, ref missing);

 

 

object

 

 

 

Word.

Word.

docWord = appWord.Documents.Open(

 

docWord.Activate();

appWord.Selection.TypeText(

appWord.Selection.TypeParagraph();

docWord.Save();

appWord.Application.Quit(

 
New Post
7/27/2009 5:05 PM
 

It seems that it can not find the Office automation libraries, thus the error message.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
7/28/2009 2:11 AM
 

Hello Mitch,

1. I gave Full right to Microsoft word Document in DCOMCNFG
2. Added the Reference of Interop.Microsoft.office.core.dll and Interop.word.dll
 

still am getting the same error

how to find the Office automation libraries

any idea

Thanks

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Cant Open Word Document in dnnCant Open Word Document in dnn


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out