Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 21st, 2008, 09:58 AM
Authorized User
 
Join Date: Nov 2005
Location: , , Spain.
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


Reply With Quote
  #2 (permalink)  
Old October 21st, 2008, 10:35 AM
Friend of Wrox
 
Join Date: Nov 2007
Location: Central Florida, USA.
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
Reply With Quote
  #3 (permalink)  
Old October 21st, 2008, 11:32 AM
Authorized User
 
Join Date: Nov 2005
Location: , , Spain.
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?


Reply With Quote
  #4 (permalink)  
Old October 21st, 2008, 11:40 AM
Friend of Wrox
 
Join Date: Nov 2007
Location: Central Florida, USA.
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
Reply With Quote
  #5 (permalink)  
Old October 22nd, 2008, 04:42 AM
Authorized User
 
Join Date: Nov 2005
Location: , , Spain.
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


Reply With Quote
  #6 (permalink)  
Old October 22nd, 2008, 08:46 AM
Friend of Wrox
 
Join Date: Nov 2007
Location: Central Florida, USA.
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
Reply With Quote
  #7 (permalink)  
Old October 29th, 2008, 03:00 AM
Authorized User
 
Join Date: Nov 2005
Location: , , Spain.
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



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.