SIGN UP MEMBER LOGIN:    
ARTICLE

Security Setting for Excel

Posted by Sushmita Kumari Articles | Security in .NET January 04, 2006
To run the excel report, security settings are required for excel application because while working with the excel application we are going to use some of the classes for manipulating the data inside the file. This article shows how to grant access or rights to those files.
Reader Level:

To run the excel report, security settings are required for excel application because while working with the excel application we are going to use some of the classes for manipulating the data inside the file. Since the output of the excel report will come as a file. So that to do the manipulation with the file we need to grant the access or rights(Read/Write) to those files.

 

After following the steps we will be having a full control over the Excel Application.

 

Step 1:-

 

    * We need to grant write privileges to your Web directory for this  account (IUSR_machinename since we are using <identity impersonation=true> in web.config) for that add IUSR_machinename as administrator.

 

Step 2:-

 

  1. Click Start, click Run, and then type DCOMCNFG.exe .Select the Microsoft Excel Application that we want to automate.
  2. Click Properties to open the property dialog box for this application.
  3. Click the Security tab. Verify that Use Default Access Permissions and Use Default Launch Permissions are selected.
  4. Click the Identity tab. Verify that The Launching User is selected.
  5. Click OK to close the property dialog box and return to the main applications list dialog box.
  6. In the DCOM Configuration dialog box, click the Default Security tab.
  7. Click Edit Defaults for access permissions. Verify that the following users are listed in the access permissions, or add the users if they are not listed:

    SYSTEM
    INTERACTIVE
    Everyone
    Administrators
    OfficeAutomationUser
    IUSR_<machinename>*
    IWAM_<machinename>*

* These accounts exist only if Internet Information Server (IIS) is installed on the computer.

 

A: Screen Layout of Dcomcnfg.exe Excel Property

 

 

Login to add your contents and source code to this article
share this article :
post comment
 

I have created an excel add-in for excel 2007. Here when I click on button it will invoke a webservice. This webservice requires session ID for authentication. Now, I would like to allow the user to use the webservice if he is already logged into the web application and this is possible only if I am able to get the session ID from the client machine. From where can I find the session ID from the client machine so that user doesn't require to login again from the excel add-in? I am new to web applications so please explain to me in details considering me a newbie. If Session ID is browser specific then is it possible to store the session ID in clients machine in a manner that it can be accessible by stand alone excel sheet? Please help if possible. Thanks.

Posted by Jimit Shah May 18, 2011

helpful article,I have a problem that the I can generate the excel report but it does not display as I run the application .If I saved it in a specific directory I find it.please help me if you can.
thanks

Posted by rama dema Dec 02, 2009

The image is not uploaded in the last page of article publishing. Please upload the file so that the article wiil be published.

Posted by Praveen Kumar Jan 02, 2006
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Team Foundation Server Hosting
Become a Sponsor