Wrox Programmer Forums
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 9th, 2004, 09:54 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default excel export

Hi

I am working on ASP.NET.We installed excel 2000 on my server.
We are doing windows authentication(checked Integrated windows authentication in IIS) for our web site.
In our application using excel object for exporting data to excel.
When i try to access that perticular page from client machine its exporting data without any problem because i am having admin previliges in server machine.
But any other valid Windows user(who is not having admin prevliges in server) try to access that page giving excel object permissions denied error.

if i remove windows authentication in IIS then all users can do the excel export.
But i have to use windows authentication in my web application.

I want to use both windows authentication and exporting to excel in my application.
how to slove this problem.
Your help is appriciated.

thanks sr




 
Old June 10th, 2004, 08:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

when using windows authentication you need to give each user rights on the machine. I think the other option is to use impersionation..

That said, if your creating a basic sheet- there is no need to use the excel object- you can change the header and send a table over, and the browser will open it in excel (which the user can then save).


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee





Similar Threads
Thread Thread Starter Forum Replies Last Post
Export to excel moonbreeze Reporting Services 1 November 20th, 2006 08:42 PM
export to excel roy_mm Reporting Services 0 September 2nd, 2006 11:53 PM
Export to Excel using C# lily611 Crystal Reports 2 July 23rd, 2006 10:23 AM
excel export msrnivas Classic ASP Components 0 June 9th, 2004 10:15 PM
excel export msrnivas .NET Web Services 1 March 29th, 2004 03:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.