View Single Post
  #5   Report Post  
Posted to microsoft.public.dotnet.languages.csharp,microsoft.public.excel.programming
Niklas Niklas is offline
external usenet poster
 
Posts: 15
Default Import Excel data with .NET

Thank you. The programming stuff I know by heart, but I don't have the
resources to do a whole Export utility.

We have several thousands Workbooks which are created by different users
with different layout and now we want to export all this data to our other
systems. This program/utility should be configurable so each user can export
his/her own data. We are not the first company who wants to export Excel
data, so I had a look at the Internet. What I found was a lot of utility
which exports Excel tables to different databases.

Our data is not in nice tables, but is scattered throughout the whole
Workbook. The program should be able to create export protocol/templates
which can be reused when doing an export on an already specified Workbook
layout. I would prefer an utility/framework with source code which I can
integrate with out own system.

Regards
/Niklas

"Nicholas Paldino [.NET/C# MVP]" wrote:

Niklas,

There is really no need for such a thing really. You can use the Excel
automation model to access the sheet directly and then get the values in
those sheets/cells.

Basically, you should set a reference to the Microsoft Office Primary
Interop Assemblies in your project.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
-

"Niklas" wrote in message
...
Hi

Before I start coding I need to be sure that nobody else has not done it
yet
and that I can use it.

I need an import utility which import data from Excel to a database or
some
object in .NET. The data in Excel is not in structured columns but can
exist
everywhere in the workbook. For example if I am supposed to import a
person
and all his/her cars which exist in a workbook I want to be able to create
an
import protocol and specify that the first name exist in cell Sheet1!C4,
the
last name in Sheet1!F4, telephone in Sheet1!E10 and all cars in in column
Sheet2!B4. The resulting table to a database could look something like
this

Agnes|Carlsson|123456|Subaru
Agnes|Carlsson|123456|Volvo
Agnes|Carlsson|123456|Ford

Are their any Open Source projects, Frameworks and/or components which I
can
use or have a look at?

Regards
/Niklas