Hi,
I face this peculiar problem. I have an export to excel functionality
in my ASP.NET application. I set the Response.Conten tType and Content
Disposition properties of the page as
Page.Response.C ontentType="app lication/vnd.ms-excel";
Page.Response.A ddHeader("Conte nt-Disposition",
"filename=Resul ts.xls");
This page has data displayed on a grid.
Now when I open this page, it prompts for Open / Save… which is what I
want exactly. When I click on Open it opens the excel in IE… This is
Fine. But when I choose Save option, it opens the Save Dialog box
where I select the destination folder, click on save to save the file.
But the page that opened initially whose COntentType and AddHeader
have been set to open in Excel does not close automatically, rather it
displays the "Action Cancelled" error. My requirement is, once I
choose to save, it should close the page and not show "Action
Cancelled".
Any pointers on this would be of great help.
Thanks Much,
Ramjee 0 1180 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dave Kuhlman |
last post by:
Suppose that I have content that looks like what I've included at
the end of this message. Is there something in the standard
Python library that will help me parse it, break into the parts
separated by the boundary strings, extract headers from each
sub-part, etc?
Do I need to add something like the following to the beginning?
Content-Type: multipart/related;
type="multipart/alternative";
|
by: Martin Körner |
last post by:
Hi NG,
I am using email module for creating mails with attachment (and then
sending via smtplib).
If the name of the attachment file is longer than about 60 characters
the filename is wrapped in the Content-Disposition header:
Content-Disposition: attachment;
filename="This is a sample file with a very long filename
|
by: Alex Nitulescu |
last post by:
Hi. First of all, I *HAVE* to express my annoyance with how badly (at least)
this content thing is documented in MSDN. There's no head, nor tail to it.
Anyway, I have this code in a form named "Download.aspx". There's all there
is to it - no UI, nothing else. This is all the code.
___________________________________________________________
'Retrieve the path of the file to download, and create a FileInfo object to
read its properties...
|
by: Jed |
last post by:
I have looked everywhere and cannot find a resolution for this. I have read
several post on this forum that allude to similar issues but I have not found
a solution.
I am sending dynamic content to the browser to be opened in Excel. On some
browsers including on the mac it works fine, but in other browsers it sets
the filename to the script instead of to the name specified in the
content-disposition.
I am at my wits end. Here is a...
|
by: athirumurthi |
last post by:
I have a WinINet communicating with an integration server
(X-AspNet-Version: 1.1.4322) using form posts.
One form post that includes jpeg content. However, the data received
at the server is missing bytes from the beginning of the jpeg. It
could be that the whole exif header that has been stripped.
I can upload the same jpeg successfully using a .htm with Internet
Explorer. Using a port sniffer and diff tools, I can verify that the...
| |
by: Tom |
last post by:
I have tried three ways of opening word documents on my win95 machines.
(Yes, my client still has some win95 machine)
#1-With Response.AddHeader "Content-Disposition", "attachment;
filename=yourfilenamehere.doc"
#2-With Response.AddHeader "Content-Disposition", "inline;
filename=yourfilenamehere.doc"
#3 without the content-Disposition header.
#1 is not good because it forces the user through two dialogs.
#2,#3 seem good because they...
|
by: Trapulo |
last post by:
I've this statement in my output's creation:
Response.Clear()
Response.ContentType = "application/vnd.google-earth.kml+xml kml"
Response.AddHeader("Content-Disposition", "inline; filename=Log_" &
activityLogID & ".kml")
The strage is that on my development server all works (IE try to open the
|
by: Dave H. |
last post by:
Please redirect me if this message is posted to the wrong group.
Given the intention of delivering content to an HTTP user agent (such
as Internet Explorer) which is to be immediately opened by an
associated application, there are the Content-Disposition type options
of "inline" or "extension-token". Specifically as regards Internet
Explorer, I've tried both inline and the specific filename extension
(xls,csv,pdf,doc,...) and the...
|
by: Martin |
last post by:
I have a link in a page that allows the user to download a dynamically
created XLS file. I add these headers and everything works correctly -
as long as the .xls file is in the "home" folder.
AddHeader("Content-Disposition", "attachment; filename=MyFile.xls")
AddHeader("Content-type", "application/xls")
But, I would like to create the file in a sub-folder and send it out
from there. I've tried putting in a pathname like so:...
|
by: xhunter |
last post by:
Hi,
I am trying to add support for ranges to my download scripts, so users downloading from my site with eg download managers they have the option for multiple connections/resume.
I have gone so far that this works perfect in normal situations, but not when streaming a file eg "wmv" ,
it seems mediaplayer or other players request ranges differently than download managers , so the effect is that you can not move forward along the movie...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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: 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: 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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |