PranasLu's Blog

2010-11-30

MS Office Word 2007 automation on Windows 2008 server

Filed under: Programming — Tags: , , , , — pranaslu @ 13:17

Jei gaunama klaida: [Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005] reikia suteikt admin teises NETWORK SERVICE (arba tam, kuris nurodytas AppPool “Identity” nustatyme) accountui. DCOMCfg suteikt tam useriui “Local Launch” ir “Local Activation” teises.

 

Jei Open() metodas grazina null:

ApplicationClass WordApp = new ApplicationClass();
Document aDoc = WordApp.Documents.Open(…);

Reikia sukurt katalogus:

・Windows 2008 Server x64

  C:\Windows\SysWOW64\config\systemprofile\Desktop

・Windows 2008 Server x86

  C:\Windows\System32\config\systemprofile\Desktop

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: