Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export to Excel without MS Office installed

Status
Not open for further replies.

UdoScheuvens

Programmer
Apr 12, 2001
42
DE
Hi,

I want to create files in Excel format from a VB application. Of course I read all the threads treating this issue, but I need something different.

I'm looking for a technique that works without Microsoft Excel being installed on the target system. My application should be able to generate such files, but it runs on multiple systems that don't need office for anything else so we would like to save the money for all the office licences.

I also looked for ActiveX controls for this job, but all the one's I found require MS Excel in the background.

Any idea?
Udo
 
you could search or a similar site for one of the many excel formats.

[search "xls" and have a read of the following file "Microsoft Excel File Format (versions 2, 3, 4, 5, 95, 97, 2000, XP) [Daniel Rentz]" - 222kb)

good luck!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
come on... get involved!
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
This article is quite interesting.

But honestly - I didn't want to spend the next 2 years in understanding and trying to implement an export function myself. Isn't there any further support available somewhere?
 
maybe... but i doubt it!

ive not seen one so far!

good luck!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
come on... get involved!
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
Why not to create CSV files instead? Excel should read them.
 
williamsenora2000,

Dim CONN As New ADODB.Connection
Dim NUMOFRECORDS As Long
Screen.MousePointer = vbHourglass
DoEvents
CONN.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & "MDB_PATH_AND_NAME" & _
";"
CONN.Execute "SELECT * INTO [Excel 8.0;" & _
"Database=XL_PATH_AND_NAME].[Books] FROM " & _
"TABLE NAME", NUMOFRECORDS
CONN.Close
Set CONN = Nothing
Screen.MousePointer = vbDefault
MsgBox NUMOFRECORDS & " records copied!", vbInformation

Swi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top