![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Oct 2008
Posts: 1
OS: xp sp2
|
Hello ,
i'm sending a stream of data from the server to the client. When the stream reaches the client, instead of displaying the stream directly into the browser,it forces the opening of the "Download file dialog" . The stream is in excel format. Everything works fine , the dialog appears, i press the open button , excel starts and the desired content appears. But now i want to send that stream again, the dialog again appears, but when i press Open button, i would expect a new Excel opens with the desired information, without closing the old Excel. How can i solve this? I am using Win XP, excel 2007 , IE 7, .NET 2005. This is the code: HttpResponse response = HttpContext.Current.Response; response.ContentType = "application/vnd.openxmlformats- officedocument.spreadsheetml.sheet"; response.AddHeader("Content-Disposition", "inline; filename=AlarmHistory.xls"); response.Clear(); objStreamWriter = new StreamWriter(response.OutputStream, new UnicodeEncoding()); .... fill the stream with data.... objStreamWriter.WriteLine(); objStreamWriter.Flush(); response.End(); Thanks |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
![]() |
| Thread Tools | |
|
|