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

  • Home
  • SEARCH
  • 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 6162739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:42:19+00:00 2026-05-23T21:42:19+00:00

A stored proc (SQL Server 2008) returns multiple result sets. An Excel (.xls) file

  • 0

A stored proc (SQL Server 2008) returns multiple result sets.

An Excel (.xls) file with custom formatting – not a generic workbook, not a spreadsheet built on the fly – has particular cells on particular
worksheets where I need to correctly “paste” each appropriate result set
from the stored proc. The worksheets designated for holding data need to
receive the data, and then other worksheets in the workbook will display the data
with a high degree of formatting and with charts.

For example:
result set 1 needs to be pasted in a worksheet named ‘data01’
and beginning at cell B2;

result set 2 needs to be pasted ‘data01’
and beginning at cell K2;

result set 3 needs to be pasted in a worksheet named ‘data02’
and beginning at cell B2…

What are some approaches for tackling this problem
in a .NET environment? I have not found examples
or lessons which duplicate this scenario.

Update:
Essentially I’m wondering if it’s possible to do what
SpreadsheetGear does with an excel template, without
having to pay thousands for a third party tool.
http://www.spreadsheetgear.com/support/samples/excel.aspx

  • 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-23T21:42:20+00:00Added an answer on May 23, 2026 at 9:42 pm

    On Zach Hunter’s blog,
    http://zachhunter.net/

    he has a number of posts on how to make user of NPOI.
    http://npoi.codeplex.com/

    In particular, these two articles were invaluable:
    "Use NPOI to populate an Excel template"
    http://www.zachhunter.net/2010/05/npoi-excel-template/

    "Improved NPOI ExportToExcel Function"
    http://www.zachhunter.net/2010/06/improved-npoi-exportdatatabletoexcel-function/

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

Sidebar

Related Questions

I can't get SqlCacheDependency to work with a simple stored proc (SQL Server 2008):
I have a stored proc on sql server 2008 that excepts a int parameter.
Using SQL Server 2008. I have a stored proc which has start and end
I'm writing a stored proc in SQL Server 2008. The following code: SELECT @LastAccessed
This page from SQL Server 2008 BOL , talks about CLR Stored Procedures and
Using Vb.net/SQL Server 2000 updating a row via a gridview/sqldatasource Stored proc: @ISTag varchar(10),
I am attempting to use the SQL SERVER 2008 MERGE statement in a stored
You'd like to call a stored proc on MS SQL that has a parameter
I have a SQL Insert query inside a stored proc, for inserting rows into
Stored procs in SQL Server sometimes finish with a return code, as opposed to

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.