Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 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 October 21st, 2008, 09:58 AM
Authorized User
 
Join Date: Nov 2005
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Default Can´t creat excel file on a PC using ASP

Hi,

I created an ASp file which saves the result of an SQL query into an Ecel file. So when the file is created (from html code) into an excel file it pop ups a windows explore asking where to save the file.
This al works fine, except on one PC of the office. Is there a special function I have to de-activated of windows for that?
My code is:

Code:
<% 
Response.ContentType = "application/vnd.ms-excel"
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
I don´t believe it is the code, as it works fine on 99%of the Pc´s here. All the Pc´s have office 2003 but even a PC with office 2007 has no problem.....

Thx,

Johny


 
Old October 21st, 2008, 10:35 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

On the computer with the issue. open my computer then click the tools menu. Click folder options. In the popup click the file types tab. Scroll down to xls and choose the advanced button (near the bottom). Make sure that Open and Save As are both in the list. then hit ok then hit apply then close the pop up and then try to download the file again.

Jason Hall
 
Old October 21st, 2008, 11:32 AM
Authorized User
 
Join Date: Nov 2005
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Default

No luck. I even cheked te otehr Pc´s where it wors, and the donñt have that option activated.

maybe I should look into the direction of Blocked Popups, or so?


 
Old October 21st, 2008, 11:40 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

yeah it could be a popup blocker disable it temporarily and see if that makes a difference.

Jason Hall
 
Old October 22nd, 2008, 04:42 AM
Authorized User
 
Join Date: Nov 2005
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Default

That PC doesn´t has a POP-up killer or so, does windows has one? And so, where is it, as I looked around and couldn´t find one

Thx


 
Old October 22nd, 2008, 08:46 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

what web browser are you using? If it's Internet Explorer 7 then it does have a pop up blocker. You can change the setting in internet options under the privacy tab. If you have IE 6 but windows xp SP2 then you probably have it and can change the settings the same way i believe. as far as another browser i'm not sure you'd have to tell us which one.

Jason Hall
 
Old October 29th, 2008, 03:00 AM
Authorized User
 
Join Date: Nov 2005
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Hi jason,

Sorry for answering so late, but I have been busy lately.
No, the PC has Widnows XP with the latest updates and IE7 (V7.0.5730.11).
I find it strange as all the PC´s are the same (DELL), with no modification at all.
I will try more stuff this week/next week. and Then come back.
If anybody has another Idea, please tell me.

Thx








Similar Threads
Thread Thread Starter Forum Replies Last Post
how to creat crystal report file with php. malcomstewart Pro PHP 0 April 30th, 2008 07:49 AM
how to creat a file object hafizmuhammadmushtaq Java Basics 3 April 8th, 2008 02:42 AM
How to lock certain excel file into one pc? kevinace Excel VBA 1 May 16th, 2007 03:50 PM
How do I creat a .dll file dbrooks Classic ASP Components 1 July 8th, 2006 03:29 AM





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