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 66047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:02:31+00:00 2026-05-10T19:02:31+00:00

I am about to add a section to an ASP.NET app (VB.NET codebehind) that

  • 0

I am about to add a section to an ASP.NET app (VB.NET codebehind) that will allow a user to get data returned to them as an Excel file, which I will generate based on database data. While there are several ways of doing this, each has its own drawbacks. How would you return the data? I’m looking for something that’s as clean and straightforward as possible.

  • 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-10T19:02:31+00:00Added an answer on May 10, 2026 at 7:02 pm

    CSV

    Pros:

    • Simple

    Cons:

    • It may not work in other locales or in different Excel configurations (i.e. List separator)
    • Can’t apply formatting, formulas, etc

    HTML

    Pros:

    • Still pretty Simple
    • Supports simple formating and formulas

    Cons:

    • You have to name the file as xls and Excel may warn you about opening a non native Excel file
    • One worksheet per workbook

    OpenXML (Office 2007 .XLSX)

    Pros:

    • Native Excel format
    • Supports all Excel features
    • Do not require an install copy of Excel
    • Can generate Pivot tables
    • Can be generated using open source project EPPlus

    Cons:

    • Limited compatibility outside Excel 2007 (shouldn’t be a problem nowadays)
    • Complicated unless you’re using a third party component

    SpreadSheetML (open format XML)

    Pros:

    • Simple compared to native Excel formats
    • Supports most Excel features: formating, styles, formulas, multiple sheets per workbook
    • Excel does not need to be installed to use it
    • No third party libraries needed – just write out your xml
    • Documents can be opened by Excel XP/2003/2007

    Cons:

    • Lack of good documentation
    • Not supported in older versions of Excel (pre-2000)
    • Write-only, in that once you open it and make changes from Excel it’s converted to native Excel.

    XLS (generated by third party component)

    Pros:

    • Generate native Excel file with all the formating, formulas, etc.

    Cons:

    • Cost money
    • Add dependencies

    COM Interop

    Pros:

    • Uses native Microsoft libraries
    • Read support for native documents

    Cons:

    • Very slow
    • Dependency/version matching issues
    • Concurrency/data integrity issues for web use when reading
    • Very slow
    • Scaling issues for web use (different from concurrency): need to create many instances of heavy Excel app on the server
    • Requires Windows
    • Did I mention that it’s slow?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 75k
  • Answers 75k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Yes, you can use SharePoint 'controls' in an ASP.NET application,… May 11, 2026 at 2:43 pm
  • added an answer Check out the open-source NExcel. Last updated about 2 years… May 11, 2026 at 2:43 pm
  • added an answer I think this page should be able to help you:… May 11, 2026 at 2:43 pm

Related Questions

I have an ASP.NET application with a lot of dynamic content. The content is
I have a spreadsheet with a dataset of a number of transactions, each of
I'm developing on the iPhone and I'm missing something about storing objects in an
EDIT: After re-reading my post I think I am being a little bit unclear

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.