Cannot using style sheet inside ASP generated Excel

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Utada P.W. SIU

    Cannot using style sheet inside ASP generated Excel

    Dear All,

    I would like to using style sheet in ASP generated Excel, but it sees cannot
    using it.
    Here's my code:

    '------------------- CODE -----------------------------------------
    <style>
    <!--
    ..report {
    font-family: Arial;
    font-size: 11pt;
    }
    //-->
    </style>

    <%
    response.conten tType = "applicatio n/vnd.ms-excel"
    %>

    <font class="report"> testing</font>
    ----------------------- END ---------------------------------------

    How to solve it? Thanks for advance ^.^!!


  • Ray Costanzo [MVP]

    #2
    Re: Cannot using style sheet inside ASP generated Excel

    This is not ASP related. Please either see a client-side group, or try
    formating a spreadsheet the way you'd like it to look, saving that as an
    HTML file from within Excel, and then analyze the styles it created.

    Ray at home


    "Utada P.W. SIU" <wing0508@hotma il.com> wrote in message
    news:uuWNlwfqEH A.3164@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Dear All,
    >
    > I would like to using style sheet in ASP generated Excel, but it sees
    > cannot
    > using it.
    > Here's my code:
    >
    > '------------------- CODE -----------------------------------------
    > <style>
    > <!--
    > .report {
    > font-family: Arial;
    > font-size: 11pt;
    > }
    > //-->
    > </style>
    >
    > <%
    > response.conten tType = "applicatio n/vnd.ms-excel"
    > %>
    >
    > <font class="report"> testing</font>
    > ----------------------- END ---------------------------------------
    >
    > How to solve it? Thanks for advance ^.^!!
    >
    >[/color]


    Comment

    Working...