If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Putting header and footer info in an Excel spreadsheet generated using Response obj

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-23-03, 21:05
Strawberri Strawberri is offline
Registered User
 
Join Date: Apr 2003
Posts: 1
Putting header and footer info in an Excel spreadsheet generated using Response obj

Hi,

I'm currently developing an ASP page that uses the following code so that Excel will interpret the data in the webpage:

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

The data is being interpreted and displayed properly, but I also need the Excel report to have a header and a footer, so that it would look nice and professional when printed out.

Any ideas?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 04-24-03, 14:02
rhs98 rhs98 is offline
Super Moderator
 
Join Date: Feb 2002
Location: Hampshire, UK
Posts: 441
Are you outputting Excel code? or is it XML or ...?

If its the actual excel code your best bet is to ask a group like the OpenOffice.org (http://www.openoffice.org/) group (they make an Open Source Microsoft Office replacement, including Excel) or another opensource group dealing with Office.

Or;
http://www.google.com/search?hl=en&l...=Google+Search
http://www.google.com/search?hl=en&l...rmat%22+header

Sounds interesting though!

Is it personal or commerical?
Reply With Quote
  #3 (permalink)  
Old 04-25-03, 23:51
duckworth duckworth is offline
Registered User
 
Join Date: Apr 2003
Location: NY
Posts: 3
Re: Putting header and footer info in an Excel spreadsheet generated using Response obj

I'm not sure which method your using, the urn:schemas-microsoft-com:office:excel xml outout or just writing html and letting excel interpret it, but you should be fine with putting a standard html table with your header information in it before your data and another table after your data with your footer info.

-John Lemp
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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