473,396 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ASP export to Excel formatting?

Hello. I have negatives values showing as parenthesis when viewed on an asp
page but when exported to excel as follows:

Response.ContentType = "application/vnd.ms-excel"

...the negative values lose the parenthesis formatting and was wondering how
I can preserve these parenthesis when viewed in excel through internet
explorer through the above code?

Thanks in advance.
Aug 24 '07 #1
2 3144
Hi zz12,

I think this is a client setting. It may be either a Windows System setting
or an Excel Format statement.
I think you will have to incluced the Excel format for negative numbers
otherwise it will default to the system settings of the client machine.

Regards.
"zz12" <ID***********@Nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hello. I have negatives values showing as parenthesis when viewed on an
asp page but when exported to excel as follows:

Response.ContentType = "application/vnd.ms-excel"

..the negative values lose the parenthesis formatting and was wondering
how I can preserve these parenthesis when viewed in excel through internet
explorer through the above code?

Thanks in advance.

Aug 24 '07 #2
Been looking around on this and seems like Excel loses much functionality
when viewed through IE. Will look into it further and see how it goes.
Thanks for your reply Bob. Much appreciated. Happy Friday...cheers :)

"Rob ^_^" <ie**********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi zz12,

I think this is a client setting. It may be either a Windows System
setting or an Excel Format statement.
I think you will have to incluced the Excel format for negative numbers
otherwise it will default to the system settings of the client machine.

Regards.
"zz12" <ID***********@Nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Hello. I have negatives values showing as parenthesis when viewed on an
asp page but when exported to excel as follows:

Response.ContentType = "application/vnd.ms-excel"

..the negative values lose the parenthesis formatting and was wondering
how I can preserve these parenthesis when viewed in excel through
internet explorer through the above code?

Thanks in advance.


Aug 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steven Stewart | last post by:
I have a user who has been using Excel for a while to keep statistics and print reports. She finds using it cumbersome because of long formulas and a lot of copying and pasting. I have designed...
2
by: shan_chennai | last post by:
Hi, I export data from a datset to excel by the code shown below. The problem iam getting is that the data with empty strings in datset is shown as 17 white spaces in the exported excel file....
2
by: Siu | last post by:
Hi, I use the following code to export and import a file Excel from resp. into a Web page with the following code: //EXPORT Response.Clear(); Response.Buffer = true; Response.ContentType =...
1
by: Dave Fetrow | last post by:
Is there any good examples out there that show a little more complex formatting. Also, How do you do multile tabs? Dave http://www.helixpoint.com *** Sent via Developersdex...
3
by: nologin | last post by:
Is it possible to export data exposed by DataView to Excel file for example ? Seba
2
by: Phoon Chee Keong | last post by:
Hi, Anyone know how to export to excel? Any example that I can refer? Regards, PCK
0
by: hank755_ca | last post by:
Hello, I have a report in Access which I want to export to Excel with the formatting intact. The formatting is rather complex with several headings and fields with borders. I have tried the...
0
by: JayDawg | last post by:
If anyone is willing to provide some consulting pro-bono, or for a very small charge I would really love the asistance. If anyone can fix my problem here online that would be even better. Here...
5
by: karthick | last post by:
Hi, I am exporting a Gridview to Excel and it works fine without any issues. But as one of the field holds values such as "71646E100" it gets converted to: "7.16E+104" (like a formula) in...
1
by: =?Utf-8?B?S3VtYXIuQS5QLlA=?= | last post by:
I need to export the data from table of a web page to excel sheet. This export should also include the formatting of excel sheet like colors etc. how this can be achieved? -- Kumar.A.P.P...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.