We help IT Professionals succeed at work.
Get Started

How do I prevent my exported xls files from causing a security message in Excel 2007

KeithMMoore
KeithMMoore asked
on
1,934 Views
Last Modified: 2009-02-16
Using different techniques to export an xls file on the web using c# asp.net, I receive the following security message when opening with Excel 2007:

"The file you are trying to open, <filename>, is in a different format than specified by the file extension..."

Though it will open if you hit ok.  Yet Excel 2003 will open it without the security alert.  The two techniques I've tried is htmlstreaming and tabbed delimited.  If I use xml formating will that solve the problem?  This forum says no: http://forums.asp.net/p/1070490/1560113.aspx.  But even if xml formating solved the problem, will it work for Excel 2003 or Excel 2000?

Thanks
Comment
Watch Question
Top Expert 2007
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE