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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:17:52+00:00 2026-05-10T21:17:52+00:00

The scenario: we have a web system that automatically generates office 2003 excel files

  • 0

The scenario: we have a web system that automatically generates office 2003 excel files ‘on the fly’ (using the 2003 XML file format, not the binary format.) These files do get kept on the web server for various things.

Now, we’re in a situation where the client would really like us to take the xls files generated by this process and glue them together into a single sheet of one big file. (largely so that they can press ‘print’ only once.)

I assume the .net framework must have some way to do this (and things like this) but I can’t seem to tease what I need out of MSDN.

For the record: .net 2.0, using VB.net and ASP.net. Excel can be installed on the server if needed, but something that opens excel in the background on every web user hit might not scale so well. 😉

  • 1 1 Answer
  • 1 View
  • 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-10T21:17:53+00:00Added an answer on May 10, 2026 at 9:17 pm

    Perhaps ADO would suit? Here is a script example.

    strXLToOpen = 'C:\Docs\ltd.xls'  strXLToImport = 'C:\Docs\ltd2.xls'  Set cn = CreateObject('ADODB.Connection') ''EDIT I not that MSDASQL is deprecated by Microsoft, so  ''Please see below. With cn     .Provider = 'MSDASQL'     .ConnectionString = 'Driver={Microsoft Excel Driver (*.xls)};' & _ 'DBQ=' & strXLToOpen & '; ReadOnly=False;'     .Open End With  strSQL = 'INSERT INTO [Sheet2$] (H1, H2) ' _ & 'SELECT H1, H2 FROM [Sheet2$] IN '' ' _ & ''Excel 8.0;database=' & strXLToImport & '';'         cn.Execute strSQL 

    Further information: http://support.microsoft.com/kb/257819/EN-US/

    http://support.microsoft.com/kb/278973

    Edit re comment.

    Would this suit? It is from: http://www.codemaker.co.uk/it/tips/ado_conn.htm#ODBCDriverForExcel

    cn.Open 'Driver={Microsoft Excel Driver (*.xls)};' & _            'DriverId=790;' & _            'DBQ=' & strXLToOpen & '; ReadOnly=False;' & _            'DefaultDir=c:\somepath'  

    You can also use Jet drivers with Excel.

    EDIT re Comment #2

    I have tested this connection string with .Net, and it seems to work:

    'Provider=Microsoft.Jet.OLEDB.4.0;' & _ 'Data Source=C:\Docs\Test.xls;' & _ 'Mode=ReadWrite;Extended Properties=''Excel 8.0;HDR=No''' 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Pretty simple scenario. I have a web service that receives a byte array that
I have a scenario where I need to upload a file from one web
Scenario I have two wrappers around Microsoft Office, one for 2003 and one for
Scenario: I have a text file that has pipe (as in the | character)
Here's the scenario: I have a textbox and a button on a web page.
I have a scenario where users of my ASP.NET web application submit testimonials consisting
Ok, i have simple scenario: have two pages: login and welcome pages. im using
Scenario: You have an ASP.Net webpage that should display the next image in a
Scenario: I have a document I created using LaTeX (my resume in this case),
I'm using vs 2010 and have a web application project. I currently use the

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.