I know everyone says their problem is weird so ...
I have a weird problem. I am trying to save an asp file as an excel
spreadsheat. The table displays fine in html but when I add
Response.Conten tType = "applicatio n/vnd.ms-excel"
Response.AddHea der "Content-Disposition", "attachment ; filename="test. xls;"
I get:
Internet Explorer cannot download 2004 from ricweb3.mydomai n.com
Internet explorer was not able to open this Internet site. The requested
site is either unavailable or cannot be found.
Please try again later.
Thanks for any help.
Mike 4 2064
Did you copy and paste that code? If so, you have a syntax error.
filename=" <-- no quote
Ray at work
"Mike D" <Mi***@discussi ons.microsoft.c om> wrote in message
news:9D******** *************** ***********@mic rosoft.com... I know everyone says their problem is weird so ...
I have a weird problem. I am trying to save an asp file as an excel spreadsheat. The table displays fine in html but when I add Response.Conten tType = "applicatio n/vnd.ms-excel" Response.AddHea der "Content-Disposition", "attachment ; filename="test. xls;"
I get: Internet Explorer cannot download 2004 from ricweb3.mydomai n.com
Internet explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
Thanks for any help.
Mike
I have tried this :
Response.AddHea der "Content-Disposition", "attachment ; filename=test.x ls;"
and
response.AddHea der "content-disposition", "filename=test. xls"
and
response.AddHea der "content-disposition", "inline; filename=test.x ls"
Still same problem. I have other pages on the same server downloading
excel. I don't know what is missing.
Mike
"Ray Costanzo [MVP]" wrote: Did you copy and paste that code? If so, you have a syntax error. filename=" <-- no quote
Ray at work
"Mike D" <Mi***@discussi ons.microsoft.c om> wrote in message news:9D******** *************** ***********@mic rosoft.com...I know everyone says their problem is weird so ...
I have a weird problem. I am trying to save an asp file as an excel spreadsheat. The table displays fine in html but when I add Response.Conten tType = "applicatio n/vnd.ms-excel" Response.AddHea der "Content-Disposition", "attachment ; filename="test. xls;"
I get: Internet Explorer cannot download 2004 from ricweb3.mydomai n.com
Internet explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
Thanks for any help.
Mike
Show all the relevant code
Do you have a BinaryWrite in there somewhere?
Jeff
"Mike D" <Mi***@discussi ons.microsoft.c om> wrote in message
news:E8******** *************** ***********@mic rosoft.com... I have tried this : Response.AddHea der "Content-Disposition", "attachment ; filename=test.x ls;" and response.AddHea der "content-disposition", "filename=test. xls" and response.AddHea der "content-disposition", "inline; filename=test.x ls" Still same problem. I have other pages on the same server downloading excel. I don't know what is missing.
Mike
"Ray Costanzo [MVP]" wrote:
Did you copy and paste that code? If so, you have a syntax error. filename=" <-- no quote
Ray at work
"Mike D" <Mi***@discussi ons.microsoft.c om> wrote in message news:9D******** *************** ***********@mic rosoft.com...I know everyone says their problem is weird so ...
I have a weird problem. I am trying to save an asp file as an excel spreadsheat. The table displays fine in html but when I add Response.Conten tType = "applicatio n/vnd.ms-excel" Response.AddHea der "Content-Disposition", "attachment ; filename="test. xls;"
I get: Internet Explorer cannot download 2004 from ricweb3.mydomai n.com
Internet explorer was not able to open this Internet site. The
requested site is either unavailable or cannot be found. Please try again later.
Thanks for any help.
Mike
I figured it out. The excel file did not like the way I was calling the
page. I had it as a pop-up from my initiating page. When I changed it to a
straight hyperlink it works fine. Go figure.
Thanks for your replies.
Mike
"je**@removeeme rgencyreporting .com" wrote: Show all the relevant code
Do you have a BinaryWrite in there somewhere?
Jeff "Mike D" <Mi***@discussi ons.microsoft.c om> wrote in message news:E8******** *************** ***********@mic rosoft.com... I have tried this : Response.AddHea der "Content-Disposition", "attachment ; filename=test.x ls;" and response.AddHea der "content-disposition", "filename=test. xls" and response.AddHea der "content-disposition", "inline; filename=test.x ls" Still same problem. I have other pages on the same server downloading excel. I don't know what is missing.
Mike
"Ray Costanzo [MVP]" wrote:
Did you copy and paste that code? If so, you have a syntax error. filename=" <-- no quote
Ray at work
"Mike D" <Mi***@discussi ons.microsoft.c om> wrote in message news:9D******** *************** ***********@mic rosoft.com... >I know everyone says their problem is weird so ... > > I have a weird problem. I am trying to save an asp file as an excel > spreadsheat. The table displays fine in html but when I add > Response.Conten tType = "applicatio n/vnd.ms-excel" > Response.AddHea der "Content-Disposition", "attachment ; > filename="test. xls;" > > I get: > Internet Explorer cannot download 2004 from ricweb3.mydomai n.com > > Internet explorer was not able to open this Internet site. The requested > site is either unavailable or cannot be found. > Please try again later. > > Thanks for any help. > > Mike This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Allison Bailey |
last post by:
Hi Folks,
I'm a brand new Python programmer, so please point me in the right
direction if this is not the best forum for this question....
I would like to open an existing MS Excel spreadsheet and extract
information from specific worksheets and cells.
I'm not really sure how to get started with this process.
I ran the COM Makepy utility from my PythonWin (IDE from ActiveSTate),
|
by: Otie |
last post by:
I found the following under the GetObject help notes and in the
example for GetObject:
"This example uses the GetObject function to get a reference to a
specific Microsoft Excel worksheet (MyXL). It uses the worksheet's
Application property to make Microsoft Excel visible, to close it, and
so on. Using two API calls, the DetectExcel Sub procedure looks for
Microsoft Excel, and if it is running, enters it in the Running Object
Table. The...
|
by: Matthew Wieder |
last post by:
I have the following requirements:
Build a stand-alone C# application that asks the user to click in a cell
in an Excel spreadsheet, and then displays the address of that cell in
the C# application. It seems simple enough, but the problem I'm
encountering is as follows:
In order for the user to select the cell from Excel, they must first
click once on the Excel window to give it focus and then their second
click is what changes the cell...
|
by: pmud |
last post by:
Hi,
I need to use an Excel Sheet in ASP.NET application so that the users can
enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever
the USER ENETRS needs to go to the SQL DATABASE, probably by the click of a
button.
Is this possible? & what is the BEST APPROACH for doing this? & also if any
links are there do tell those to me too coz I have no idea how to go about
doing it.
|
by: Howard Kaikow |
last post by:
There's a significant problem in automating Excel from VB .NET.
Reminds me of a problem I encountered almost 3 years ago that was caused by
the Norton Auntie Virus Office plug-in.
Can anybody reproduce the behavior described below?
For this example, I am using Excel 2002 and VS .NET 2002 and VB 6.
MSFT KB article 304661 gives a trivial example of early and late binding to
Excel
from VB .NET. Note that there is a variable naming...
| |
by: Anthony |
last post by:
To me, creating Excel 2003 spreadsheets programmatically via VB.NET hasn't
really changed since the days of VB6.
That is, I'd do something similar to this
Code:
Dim ExcelApp As Excel.Application
Dim ExcelWB As Excel.Workbook
|
by: Alain \Mbuna\ |
last post by:
Hi everybody.
In my program I have some data that is calculated after some input from the
user. I have written some code that opens an Excel workbook, with 5
worksheets and the calculated data (no database!)with some titles and info,
is entered in the worksheet in a printable format.
This is some of the code...
Public exlAppl As Excel.Application
|
by: alexia.bee |
last post by:
Hi all,
In some weird reason, excel instance won;t die if i remove the comment
from 4 lines of setting values into struct.
here is a snipcode
public System.Collections.Generic.List<frmMain.sDBTest>
LoadTestSet(string TestSetFile,
System.Collections.Generic.List<frmMain.sDBTestDBviewList)
|
by: Doug Glancy |
last post by:
I got the following code from Francesco Balena's site, for disposing of Com
objects:
Sub SetNothing(Of T)(ByRef obj As T)
' Dispose of the object if possible
If obj IsNot Nothing AndAlso TypeOf obj Is IDisposable Then
DirectCast(obj, IDisposable).Dispose()
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |