Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP to Excel Problem

Status
Not open for further replies.

nmath

Programmer
Dec 12, 2003
47
US
I have an ASP script that is querying a DB then rendered the results in Excel. The problem is that one of the DB field values that is being returned is "<= 5". This value is not being printed in the excel sheet because I am guessing it is reading it as a formula?? Is there a way to make ALL cells in the worksheet formatted as text? I am using Response.ContentType = "application/vnd.ms-excel" to render the ASP page in excel. Any help would be greatly appreciated!! Thanks so much!!

Nina
 
You can add a single quote - ' - at the start of each cell and that should force Excel to treat it as text. You can also have a look at which covers this type of functionality.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top