Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 21st, 2004, 07:39 AM
Registered User
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Response.ContentType

Hi all
i am using the bleow code in my ASP Page.

Response.AddHeader "Content-Disposition", "attachment;filename=xx.xls"
Response.ContentType = "application/ms-excel"

when opening the page browser is promted the excel file save dialog.
when opening the excel file it displays data correct. but default format of excel is not displaying.

how to do that?


 
Old May 23rd, 2004, 01:41 PM
Authorized User
 
Join Date: Nov 2003
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sonicDace Send a message via MSN to sonicDace Send a message via Yahoo to sonicDace
Default

Nagesh,

What are you referring to with "default format of excel"?

Is it formatting you set in your spreadsheet ( cell size, character set, etc )?

thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Webresponse contenttype different from request mikehsu317 C# 6 September 27th, 2006 10:42 AM
change node contentType paultman BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 0 November 29th, 2005 01:06 PM
<%Response.ContentType...Error Dayzed XML 3 April 14th, 2004 10:32 AM
Help with excel using response.contenttype YoungLuke Classic ASP Basics 0 October 2nd, 2003 11:16 AM
Response.ContentType jcsierra ASP.NET 1.x and 2.0 Application Design 0 September 8th, 2003 11:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.