Print Page | Close Window

Open csv in Browser...

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=2754
Printed Date: 29 March 2026 at 7:40pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Open csv in Browser...
Posted By: Gary
Subject: Open csv in Browser...
Date Posted: 16 May 2003 at 5:41am

I have an asp application that creates a .csv file on the server and then gives the user a link to the csv. When the user clicks on the link (window.open('file://ukslba51/eu4cast/excel/kinga02/UKM.csv');), the csv should then open in Excel.

This works for 99.9% of users, however 1 user is prompted with the Open / Save option where the Open option is not available.

Any ideas? The user does have Excel installed. If the user chooses to Save the csv, then clicks on the saved csv it opens in Excel.




Replies:
Posted By: MorningZ
Date Posted: 16 May 2003 at 7:29am
sounds like the "csv" extension isn't mapped to Excel on his computer

-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Gary
Date Posted: 16 May 2003 at 7:31am
Thats what I thought, but surely if that was the case then double clicking on the locally saved file would result in prompting for what applicationto use rather than opening in Excel as it does at present.


Posted By: Gullanian
Date Posted: 16 May 2003 at 7:53am

Most definatly not a problem with your website, i had a similar problem when designing a site for Gap, but im trying to remeber what went wrong.....

I think it was either a problem with the browser (what are they using?) or a problem with the version of excel they are using, maybe get them to reinstall it or upgrade



Posted By: ljamal
Date Posted: 16 May 2003 at 8:34am
It may be that excel isn't asscociate with the browser or they are not using IE.


Posted By: Gary
Date Posted: 16 May 2003 at 8:38am

User has IE 5.5

How do I go about associating excel/csv with the browser???

I would have thought that if this was the case, then I should still be able to select 'Open' rather than jsut 'Save' except that it would then prompt me what I want to open it with.



Posted By: MorningZ
Date Posted: 16 May 2003 at 8:43am

hell, i wouldnt even concern yourself about it...

you got "99.9%" of the people... so this one single user needs one extra step... big deal.. you're never going to get "100%"



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Gary
Date Posted: 16 May 2003 at 8:46am

Considering that I work for an IT department and that the user has logged a call, I have no option !!!

What am I supposed to do? Close the call with a comment alomg the lines of 'This works for 99.9% of the users'



Posted By: MorningZ
Date Posted: 16 May 2003 at 8:55am

Sometimes you have to accept the fact that you cannot programmically control 100% of the behavior of the client's computer...

but i dunno, the point i was trying to make was that the user can indeed open the CSV, it just requires to save it then open it, takes him or her an extra 5 seconds of their time and its nothing you can do with your asp to fix their issue.....

personally i think you're wasting your time, but i am not writing your paycheck, so my opinion/advice no have no impact



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Gary
Date Posted: 16 May 2003 at 9:24am

Sorted.....Just upgraded user to IE6 and it works.

God knows what the problem with 5.5 was, although I suspect the usual culprits downloaded from dodgy sites (including Yahoo Messenger!!!)

Now I'm going to run Search n Destroy




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net