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 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
  • 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-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

Ask A Question

Stats

  • Questions 124k
  • Answers 124k
  • 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
  • Editorial Team
    Editorial Team added an answer Are you running on OS 3.0? I saw the same… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer It looks like you need to register Apache::Session::Memcached with Apache::Session::Wrapper,… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer Use DATENAME or DATEPART: SELECT DATENAME(dw,GETDATE()) -- Friday SELECT DATEPART(dw,GETDATE())… May 12, 2026 at 1:19 am

Related Questions

We have a DLL used as the middle layer between our website front end
Here's the scenario: I have a multi threaded java web application which is running
I'm involved in creating a web based business solution. The idea is that the
A question I have been thinking about for a while - would Stackoverflow users

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.