How to call doc2any.exe or htmltools.exe from a service?

Please by following solutions to call doc2any.exe or htmltools.exe from a Windows Service,

Solution #1:

Configure MS Word like recommended below: (please refer to a Component-Service.JPG screenshot in attachment)

1. type dcomcnfg in the command prompt and press Enter;

2. find and select Microsoft Word Document in the Applications list, then press the Properties button;

Note: If you have Windows 2003\2008 then type dcomcnfg in the command prompt, expand the Component Services group, expand the Computers group, expand the My Computer group, expand the DCOM Config group, find and select the Microsoft Word Document->right mouse click->Properties.

3. click the Identity tab. Check the "This user" checkbox, press Browse and specify the Administrator account;

4. enter and re-enter the Administrator password;

5. click the Security tab. Check the "Use custom access permissions" checkbox, press Edit and add the ASPNET, IUSR_ and IWAM_ user accounts (it is good if you can add EVERYONE user account);

Note: If you have Windows 2003\2008 also add the "NETWORK SERVICE" user account;

6. check the "Use custom launch permissions" checkbox, press Edit and add the ASPNET, IUSR_ and IWAM_ user accounts (it is good if you can add EVERYONE user account);
Note: If you have Windows 2003\2008 also add the "NETWORK SERVICE" user account;

7. reboot the computer;

please prefer to more screenshots from following page,

http://www.thaicreate.com/asp/asp-config-word.application.html

Solution #2:

If you wish run the conversion inside a service, you need arrange this serivce run under an interactive user account, please refer to Component-Service2.png screenchot in attachment.

You can also refer to a document of "Considerations for server-side Automation of Office" from following page, we hoping this document will helpful to you,

http://support.microsoft.com/kb/257757

Solution #3:

On 64bit Windows 2008 system, create a new "Desktop" directory inside of "C:\Windows\SysWOW64\config\systemprofile\", creating this directory and rebooting server, then doc2any works, it seems to be a profile problem.

This solution is ...

Windows 2008 Server x64, please make this folder.

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

Windows 2008 Server x86, please make this folder.

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

...instead of dcomcnfg.exe.

This operation took away office automation problems in my system.

A Desktop folder seems to be necessary in the systemprofile folder to open file by MS Office.

It disappears from Windows2008, Windows2003 had the folder, and I think it cause this error.

http://social.msdn.microsoft.com/Forums/en/innovateonoffice/thread/b81a3c4e-62db-488b-af06-44421818ef91

We hoping above solutions will helpful to you, please give them a try.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in HTML Converter (htmltools) and tagged , . Bookmark the permalink.

One Response to How to call doc2any.exe or htmltools.exe from a service?

  1. Pingback: doc2any.exe very slow when executed from PHP | VeryDOC Knowledge Base

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!