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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:24:42+00:00 2026-05-17T20:24:42+00:00

My client needs to read some queries using Excel or something like it, so

  • 0

My client needs to read some queries using Excel or something like it, so I need to generate XLS calling in some queries in stored procedures.

Basically I have the SP, I have the View Done, and the query working fine, but I don’t know how to make an xls or an xlsx with the SP itself.

Is there any good practice or some specific steps I should follow?

Working with .NET C# and MVC2.

Thank you in advance!

  • 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. Editorial Team
    Editorial Team
    2026-05-17T20:24:43+00:00Added an answer on May 17, 2026 at 8:24 pm

    Write the data as an HTML document and serve it up as a .XLS file rather than .HTML.

    All versions of Excel 2003 or higher will accept an HTML file, just as if it was .XLS binary or OpenOfficeXML. The users won’t see the difference.

    Demo: Copy this into Notepad

    <html><body><table>
    <tr><td>name</td><td>age</td></tr>
    <tr><td>Albert</td><td>21</td></tr>
    <tr><td>Brian</td><td>47</td></tr>
    <tr><td>Charles</td><td>32</td></tr>
    </table></body></html>
    

    Save As “simple.XLS”.

    Open that with Excel.

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

Sidebar

Related Questions

I have a product that I distribute to my clients. Each client needs some
in a client-server database application, the different options the client needs to read from
I've read some books on creating stateless websites, I've read some about stateful client
I am working on project which needs to read .doc file given by client.
I have a database that the client needs to update. They like to use
I have a .net client app that needs to play some content (images, movies,
First, some background: Our product needs to integrate with the Lotus Notes client by
I am creating a platform for some clients. Each client needs to have contacts
A client needs the browser to prompt to save the password for the login
My client needs to have a banner management system installed to their site. They

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.