Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
David Alexander
 
Posts: n/a
Default Problem displaying recordsets in Excel Format

I have a classic asp application that routes it's output to Excel via Internet Explorer.
It's worked for 6 years without a problem. Last week some of my users upgraded to Excel 2003. Now the spreadsheet won't be created. The code still works on Excel 2000 but on the new machines a window appears but it closes before Excel can be seen.

The code in the script looks like this...

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

After searching this newsgroup i've added the following lines to the code but they don't seem to fix the problem...

Response.Buffer = True
Response.charset = ""

This code sample in this knowledgebase article works on both Office 2000 and 2003 machines, but i tried to tailor it to my script without luck. Any ideas?
http://support.microsoft.com/default...;en-us;Q271572

  #2   Report Post  
Posted to microsoft.public.excel.misc
exceluserforeman
 
Posts: n/a
Default Problem displaying recordsets in Excel Format

Hello,
I am taking a wild punt here, in other words, I am guessing...
Maybe you need to declare "everything"
strings, objects etc

I believe (have heard? [have read?]) that EXCEL 2003 needs just about
"everything" to be dimmed in one way or another.

also, if you are referencing an object like a textbox,label, shape, you have
to use its extension-type.
..caption, .text etc

eg: instead of
if textbox1=strwhat then
....
you use
if textbox1.text=strwhat then
....

Also, I do not know if you use the Left or Right function but you be better
to use the global Mid Function.

Hopes this help otherwise please ignore my ramblings ....



"David Alexander" wrote:

I have a classic asp application that routes it's output to Excel via Internet Explorer.
It's worked for 6 years without a problem. Last week some of my users upgraded to Excel 2003. Now the spreadsheet won't be created. The code still works on Excel 2000 but on the new machines a window appears but it closes before Excel can be seen.

The code in the script looks like this...

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

After searching this newsgroup i've added the following lines to the code but they don't seem to fix the problem...

Response.Buffer = True
Response.charset = ""

This code sample in this knowledgebase article works on both Office 2000 and 2003 machines, but i tried to tailor it to my script without luck. Any ideas?
http://support.microsoft.com/default...;en-us;Q271572

  #3   Report Post  
Posted to microsoft.public.excel.misc
David Alexander
 
Posts: n/a
Default Problem displaying recordsets in Excel Format

Thanks for your guess, i think the culprit was XP SP2 or at the very least a security setting. By adding our site to the list of trusted Local Intranet Sites, the problem was corrected.


osoft.com 2/22/06 8:58:27 PM


Hello,
I am taking a wild punt here, in other words, I am guessing...
Maybe you need to declare "everything"
strings, objects etc

I believe (have heard? [have read?]) that EXCEL 2003 needs just about
"everything" to be dimmed in one way or another.

also, if you are referencing an object like a textbox,label, shape, you have
to use its extension-type.
..caption, .text etc

eg: instead of
if textbox1=strwhat then
....
you use
if textbox1.text=strwhat then
....

Also, I do not know if you use the Left or Right function but you be better
to use the global Mid Function.

Hopes this help otherwise please ignore my ramblings ....



"David Alexander" wrote:

I have a classic asp application that routes it's output to Excel via Internet Explorer.
It's worked for 6 years without a problem. Last week some of my users upgraded to Excel 2003. Now the spreadsheet won't be created. The code still works on Excel 2000 but on the new machines a window appears but it closes before Excel can be seen.

The code in the script looks like this...

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

After searching this newsgroup i've added the following lines to the code but they don't seem to fix the problem...

Response.Buffer = True
Response.charset = ""

This code sample in this knowledgebase article works on both Office 2000 and 2003 machines, but i tried to tailor it to my script without luck. Any ideas?
http://support.microsoft.com/default...;en-us;Q271572


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop excel from dropping the 0 in the beginning of a number? Rosewood Setting up and Configuration of Excel 12 April 4th 23 02:12 PM
Excel - cell format switches to custom when switching language louisp Excel Discussion (Misc queries) 0 February 10th 06 06:23 PM
Excel 2000 problem copying drawingobjects between sheets SiriS Excel Discussion (Misc queries) 0 February 8th 06 10:31 AM
Excel 2003 row height format Moises Colin Excel Discussion (Misc queries) 0 October 25th 05 06:35 PM
Problem Opening An Excel file. - by yk ilikecy Excel Discussion (Misc queries) 0 February 4th 05 08:19 AM


All times are GMT +1. The time now is 01:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"