Add Header/Footer to excel report from ASP..

J

jmalvika

Hi all,

I'm trying to generate an excel report from an ASP web page using ..

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

I need to add a custom header & footer to the excel report on
generation. Is there a way to do this from the web without installing
Excel on the webserver? ..

Any help is appreciated...thanks


mj
 
E

Eric

Hi: I have 100's of records in my inbox which i saved into a text file.
I need help how to i import them into access table through ASP.

Thanks,

Eric
 
E

Eric

Hi: I have 100's of records in my inbox which i saved into a text file.
I need help how to i import them into access table through ASP.

Thanks,

Eric
 
E

Eric

Hi: I have 100's of records in my inbox which i saved into a text file.
I need help how to i import them into access table through ASP.

Thanks,

Eric
 
J

jmalvika

Hi all,

I found a solution to my problem..thought I'd share

Add a pair of <style> tags to the asp code with the following (eg.)

<style>
<!--headfoot
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
@page
{mso-header-data:"&LHeaderText";
mso-footer-data:"Page &P of &N";
margin:1.0in .75in 1.0in .75in;
mso-header-margin:.5in;
mso-footer-margin:.5in;} -->
</style>

This sets the Header/Footer for the excel report generated...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,158
Latest member
Vinay_Kumar Nevatia
Top