ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 6th, 2011, 10:08 AM
mapenn mapenn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 58 mapenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 42 m 10 sec
Reputation Power: 10
Generated CSV File 'Locked for Editing' (IE Only)

My script is generating a simple CSV file (relevant code below). Everything works great in Firefox. When the script is run in the browser, it automatically generates the CSV and allows user to Open directly in to Excel.

In IE, when opening the CSV file, the user is greeted with this error message:

Quote:
busCards.csv is locked for editing by 'another user.'


The client will be using IE so I'm trying to figure out how to fix this. Anybody have any ideas? Much appreciated!!

Code:
<% 
response.ContentType="application/octet-stream" Response.AddHeader "content-disposition","attachment; filename=busCards.csv" 
Dim Spreadsheet 
Spreadsheet = Request.Form("csv_text") 
Response.write Spreadsheet 
Response.End() 
%>

Last edited by mapenn : May 6th, 2011 at 01:11 PM.

Reply With Quote
  #2  
Old May 6th, 2011, 04:03 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,237 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 14 h 47 m 12 sec
Reputation Power: 4445
Whatever is going wrong is going wrong on the browser. Your code snip merely echoes back whatever was in the form field csv_text in the browser. Apparently something is not closing a file on the client computer properly.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #3  
Old May 9th, 2011, 08:54 AM
mapenn mapenn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 58 mapenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 42 m 10 sec
Reputation Power: 10
Quote:
Originally Posted by Doug G
Whatever is going wrong is going wrong on the browser. Your code snip merely echoes back whatever was in the form field csv_text in the browser. Apparently something is not closing a file on the client computer properly.


Yes, this is strange. I tested on a few other PCs over the weekend. They all experience the same problem -- but only when using IE. I'm stuck on this one!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Genereated CSV File 'Locked for Editing' (IE Only)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap