I have a Framework 2.0 web site running on a Window 2003 server, We are
streaming an excel file(csv) into the browser for one of our customer
reports, When the excel browser window opens the data is in HTLM format, I
open the same file runnning a duplicate web site from my machine(XP) and the
data shows normally.
'Code that streams file to browser
Dim resp As HttpResponse
resp = Page.Response
resp.Clear()
resp.ContentTyp e = "applicatio n/vnd.ms-excel"
resp.AppendHead er("Content-Disposition", "attachment;fil ename=" &
reportfilenameh ere)
resp.WriteFile( reportfilenameh ere)
resp.Flush()
resp.End()
Any Suggestion on how to solve this issue?
Thanks in Advance,
Rick 2 1582
I think it depends on a version of the browser.
I recall a KB on Microsoft about bug if you try to stream over https. So
make sure you doing it over http.
Also try to make sure your reportrfilename has appropriate extension .xls or
..csv
George.
"Rick" <rf*****@newsgr oups.nospamwrot e in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
>I have a Framework 2.0 web site running on a Window 2003 server, We are streaming an excel file(csv) into the browser for one of our customer reports, When the excel browser window opens the data is in HTLM format, I open the same file runnning a duplicate web site from my machine(XP) and the data shows normally.
'Code that streams file to browser
Dim resp As HttpResponse
resp = Page.Response
resp.Clear()
resp.ContentTyp e = "applicatio n/vnd.ms-excel"
resp.AppendHead er("Content-Disposition", "attachment;fil ename=" &
reportfilenameh ere)
resp.WriteFile( reportfilenameh ere)
resp.Flush()
resp.End()
Any Suggestion on how to solve this issue?
Thanks in Advance,
Rick
On Oct 4, 6:50 pm, "Rick" <rfem...@newsgr oups.nospamwrot e:
reports, When the excel browser window opens the data is in HTLM format
You mean that Excel file is opened inside the browser window (but not
in HTML format)
Try to delete ContentType and see what happen
resp.ContentTyp e = "applicatio n/vnd.ms-excel" This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Robert Oschler |
last post by:
Hello,
I have a web site that has an audio file on it that I make available for
download. Right now I'm using the "right-click/save-as" approach. This is
because left-clicking the link to the audio file initiates client-side
streaming/playing of the audio file. Is there a way with Javascript to make
a left-click trigger a download of the file instead?
BTW, I don't want to have convert the mp3 file to winzip to make this
happen,...
|
by: CVerma |
last post by:
I'm using an html input control
(System.web.UI.HTMLControls.HTMLInputFile) to upload files such as
msword, excel, jpg, and pdf.
I have the encType property set in the form:
encType="multipart/form-data"
<INPUT id="UploadFile" type="file" name="UploadFile" runat="server">
Private Sub btnUploadFile_Click(ByVal sender As System.Object, ByVal e
|
by: Don |
last post by:
Response.ContentType() = "application/vnd.ms-excel"
Response.Charset = ""
Response.BinaryWrite(stream)
The code when executed causes the
client to open an excel document and
display the information.
Included in the stream is a clock hh:mm:ss that appears in the
content.
|
by: Pedro Leite |
last post by:
hello.
got stalled at at point that i can no longer get my thoughts together.
the point, is in classic asp, stream an excel file from a firebird database.
temporarly save it if necessary
stream it to the browser
delete the temp file
on googling, i found some examples but all assuming that the file is locally
|
by: Chris Lane |
last post by:
Hi,
I want to stream a comma separated string to the browser and have excel open
up in the browser.
How can I do this? This is not a file on disk, this is a string in memory.
Thanks
| |
by: axiarich |
last post by:
We have some doc mgt "lite" on our site. I basically have a window with
a button that opens the relevant document (Excel, PDF, etc.). The
button calls some javascript which basically performs a window open:
window.open('document.asp?item=' + intDoc,'_self', '');
I use '_self' so that the document.asp itself does not open a new
browser. the document.asp file basically retrieves the path and
displays the document via the ADODB Stream...
|
by: Marc Scheuner |
last post by:
Folks,
we're trying to stream back a result set from a SQL query into Excel
from our ASP.NET application.
Basically, we're doing this here:
Response.ContentType = "text/csv";
Response.Charset = "utf-8";
|
by: Marc Scheuner |
last post by:
Folks,
we're trying to stream back a result set from a SQL query into Excel
from our ASP.NET application.
Basically, we're doing this here:
Response.ContentType = "text/csv";
Response.Charset = "utf-8";
|
by: Karl |
last post by:
Hi all,
It may seem like a rather odd request (or not) but I would like to be
able to create a file (doc, jpg, xls or one of many other files that
can be automated) on a website and stream it to a user without saving
it to the disk first.
Obviously saving the file first and streaming it afterwards is fairly
easy to do, but it relies on disk write permissions on the server and
you'd have to make sure the file was removed afterwards.
|
by: mazdotnet |
last post by:
Hi all,
I'm trying to integrate a third party library that would parse an
excel file and allows us to make changes to. Once I update the
appropriate cells, I want to allow my users to download the modified
file.
It works by
IWorkbook book =
NativeExcel.Factory.OpenWorkbook(this.MapPath(FileName));
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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: 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...
| |