Write to an Excel file from VB without Excel present 
Author Message
 Write to an Excel file from VB without Excel present

Is it possible to write data to an Excel file from a VB app, if Excel
is not present on the end users machine?

I have used DDE to do this successfuly using;

Set xlApp = CreateObject("Excel.Application")
Set xlWb = xlApp.Workbooks.Open(filename:="X:\somefile.xls")

but I need to be able to write data to excel files with the installed
VB app, on PC's that do not have Excel installed on them.

Is this possible?

Thanks;
Don Wise



Sat, 16 Mar 2002 03:00:00 GMT  
 Write to an Excel file from VB without Excel present
You can use ODBC, although the ODBC driver for excel has some limitations

--
Marco A. Garcia
Canaima Software
1632 Dale Street
San Diego, CA 92102
Tel/Fax: (619) 233-6831
http://www.canaimasoft.com
Developers of f90SQL, the database connectivity library for fortran, and
f90VB the library for seamless Fortran-VB integration


Quote:
> Is it possible to write data to an Excel file from a VB app, if Excel
> is not present on the end users machine?

> I have used DDE to do this successfuly using;

> Set xlApp = CreateObject("Excel.Application")
> Set xlWb = xlApp.Workbooks.Open(filename:="X:\somefile.xls")

> but I need to be able to write data to excel files with the installed
> VB app, on PC's that do not have Excel installed on them.

> Is this possible?

> Thanks;
> Don Wise



Sun, 17 Mar 2002 03:00:00 GMT  
 Write to an Excel file from VB without Excel present

Quote:

>Is it possible to write data to an Excel file from a VB app, if Excel
>is not present on the end users machine?

If you can't get other people's suggestions to work, a safe fall-back
solution is to write out a CSV file.  These are dead-simple text-based files
and Excel reads them with no problems.

Ofcourse you can't store formatting info (colours, fonts, etc), or include
formulas, but if you just want a grid of data, they're perfect.
--

| Digital Routes, Inverness, Scotland, www.digitalroutes.co.uk



Sun, 17 Mar 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Writing Excel-files w/o Excel present?

2. Write a Excel File Without Excel App

3. Saving an Excel file without using Excel

4. Saving an Excel file without using Excel

5. Accessing an Excel file without opening Excel

6. Reading Excel files without opening excel

7. Using an Excel file without having Microsoft Excel installed

8. Creating Excel Files Without Excel...

9. Viewing Excel files without firing up Excel.

10. Excel - VBA - Retreive file without opening them in Excel

11. Writing Excel Files W/O Existing Excel Application

12. Is this doable: drive Excel in VB without Excel installation

 

 
Powered by phpBB® Forum Software