Excel export in windows

Source: Internet
Author: User

Excel export in windows

Solution: Windows server2008 r2 does not register the Ofiice component

 

. Use Microsoft. NET. office. interop. when Excel and word are used to operate Excel and Word, the following error occurs: 80070005 when the component whose CLSID is {00024500-0000-0000-C000-000000000046} in the COM class factory is retrieved. Taking Microsoft. Office. Interop. Word as an example, I am running Windows 7 + Office2007 locally.

 

 

1: Install Word in Windows 2008 R2/Win7/Win2003/WinXp/win2000 OS. In "component service", choose "component service"> "computer"> "my computer"> "DCOM configuration ". Run "input dcomcnfg.exe to start" component service ".

2: In "DCOM configuration", find "Microsoft Office Word 97-2003 Document", right-click it, and then click "properties ", the "Microsoft Excel application properties" dialog box is displayed. If the environment is Windows 2008 R2, you may not be able to find "Microsoft Office Word 97-2003 documentation ". You can run mmc-32, and a program will pop up. In the menu, select Add/delete management unit and add Component Services. Then, find word under Component Services and perform the following configuration. (Component cache directory c: \ windows \ assembly)

 

 

3: In the "ID" tab, select "Interactive User"

4: on the "Security" tab, click "Custom" on "Start and activate Permissions", and then click the corresponding "edit" button, in the pop-up "security" dialog box, add a "network service" user (note that you must select the computer name) and grant it the "local start" and "Local activation" permissions.

5. On the "Security" tab, click "Custom" on "Access Permissions", and then click "edit ", in the displayed "security" dialog box, add a "network service" user and grant "local access" permission.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.