ASP export excel

U

Utada P.W. SIU

Accurary, I just change the contenttype of the asp to
"application/vnd.ms-excel"

but my question is that, how to default the cell font to Arial?

Now, it is defaulted to "Time News Roman", and I have tried using
<font face="Arial">
and stylesheet

but sees cannot, please advise~

thanks~
 
L

larrybud2002

Utada said:
Accurary, I just change the contenttype of the asp to
"application/vnd.ms-excel"

but my question is that, how to default the cell font to Arial?

Now, it is defaulted to "Time News Roman", and I have tried using
<font face="Arial">
and stylesheet

but sees cannot, please advise~

See the following

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoffxml/html/ofxml2k.asp

You can do LOTS of cool stuff moving from ASP to Excel. We now use
Excel as our report writer tool. Once you know what's going on with
OFHTML it's a snap.

I often will open an Excel doc, enter my data into a cell, format it
the way I want it to work, Save As HTML and look at the source to see
what the hell is going on.

The way I develop reports is to get it working in HTML, then execute an
ASP I created which "converts" (i.e. sets up the mime type, sets the
style sheets, etc) the file to Excel. Then I go in and add my formulas
such as subtotals and sums.
 
B

Bullschmidt

<<
Accurary, I just change the contenttype of the asp to
"application/vnd.ms-excel"

but my question is that, how to default the cell font to Arial?

Now, it is defaulted to "Time News Roman", and I have tried using
<font face="Arial">
and stylesheet

but sees cannot, please advise~
This interesting resource can help with formating but I don't know if it
actually can go as far as you want (to set a particular font):

Creating a Dynamic Report using ASP and Excel by Jeff Anderson -
1/9/2003
http://www.codetoad.com/asp_excel.asp

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
 

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

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top