DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: ASP- Excel problem

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    ASP- Excel problem

    [Originally posted by Yogesh]

    Hi,

    I am facing one strange problem with the ASP- Excel combination.

    I am populating the data in the tablular format in HTML (using table , td and Tr tags),

    and then converting the ContentType of the ASP page to "application/vnd.ms-excel" by using the

    'Response.ContentType = "application/vnd.ms-excel"
    The code works fine and gives the output in the excel as expected.
    But, If I have the ASP tags embeded inside the HTML code ( and ) then the Excel file is getting generated with the error page. strange .. but true.

    Does any one have an Idea as to what may be the problem ?

    Cheers
    Yogesh

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:ASP- Excel problem

    [Originally posted by Zip]

    The CONTETC-TYPE must be set prior to any html tags being sent to the browser.

  3. #3
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Re:ASP- Excel problem

    [Originally posted by Yogesh]

    hi,

    yes sir, I have done that. Still it fails.

    neways thanks for ur reply.

    Cheers
    Yogesh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center