Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 April 30th, 2008, 03:59 AM
Friend of Wrox
Join Date: Dec 2006
Posts: 104
Thanks: 9
Thanked 1 Time in 1 Post
Default Set password in XLS on export


After several hours of searching and head scratching, setting an XLS password on export is eluding me..

The method i am using for the export is -

filename =  Date() &  "-Results.xls"
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "attachment; filename="&filename&""
I am using some XML to do some basic worksheet protection but really need to password protect it!

There are some solutions out there but none that i can see which would work with ContentType = "application/vnd.ms-excel".

If any of you have a method i'm sure i would not be the only one who would like to know the solution.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Jasper Reports Xls export ashtrash J2EE 2 April 6th, 2009 04:45 PM
Export data into the xls Sheet Directly without cl Kali Charan Tripathi Reporting Services 0 October 9th, 2008 06:40 AM
Password protect XLS using XML aspless XML 6 April 30th, 2008 06:17 AM
Export query param from Access form 2 XLS template gfranco Access VBA 0 April 14th, 2008 03:19 PM
want to set password khalid0407 Need help with your homework? 0 July 2nd, 2007 05:59 AM

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