Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 177007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:58:41+00:00 2026-05-11T13:58:41+00:00

The spreadsheet still displays, but with the warning message. The problem seems to occur

  • 0

The spreadsheet still displays, but with the warning message. The problem seems to occur because Excel 2007 is more picky about formats matching their extensions than earlier versions of Excel.

The problem was initially discovered by an ASP.Net program and produces in the Excel error ‘The file you are trying to open, ‘Spreadsheet.aspx-18.xls’, is in a different format than specified by the file extension. Verify …’. However, when I open the file it displays just fine. I am using Excel 2007. Firefox identifies the file as an Excel 97-2003 worksheet.

Here is an ASP.NET page which generates the problem:

<%@ Page Language='C#' AutoEventWireup='true' CodeFile='Spreadsheet.aspx.cs' Inherits='Spreadsheet' %> 

The code behind file looks like:

public partial class Spreadsheet : System.Web.UI.Page {     protected void Page_Load(object sender, EventArgs e)     {         Response.ContentType = 'application/vnd.ms-excel';         Response.Clear();         Response.Write('Field\tValue\tCount\n');          Response.Write('Coin\tPenny\t443\n');         Response.Write('Coin\tNickel\t99\n');       }  

}

T

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:58:42+00:00Added an answer on May 11, 2026 at 1:58 pm

    http://blogs.msdn.com/vsofficedeveloper/pages/Excel-2007-Extension-Warning.aspx

    That is a link basically describing that MS knows about the problem your describe and that it cannot be suppressed from within ASP.NET code. It must be suppressed/fixed on the client’s registry.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Excel spreadsheet provided as a report, when really its more of
I'm trying to add comments to cells in an Excel 2007 spreadsheet. I'm using
With Spreadsheet::WriteExcel , I can create a new workbook, but what if I want
I've an excel spreadsheet with a column which has the date and time of
I have an Excel spreadsheet that uses a TFS query to pull information on
I have an Excel spreadsheet that looks like: spreadsheet http://img186.imageshack.us/img186/6495/exelf.jpg I'd like to convert
I'm trying to translate an Excel spreadsheet to CSV using the Python xlrd and
I have an ASP.NET page where I'm generating an Excel spreadsheet and sending that
The standard method to get the range of an Excel spreadsheet in use is
I update some cells of an Excel spreadsheet through the Microsoft Office OpenXML SDK

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.