Page 1 of 4

How to Export to Excel

Posted: Fri Oct 31, 2008 7:24 pm
by mol
Do anybody know, how to export database to excel?

Regards, Marek

Re: Export to Excel

Posted: Sun Nov 02, 2008 4:24 am
by dhaine_adp
I think the easiest way is to open MS Excel 2003 (I believed it would be the same procedure for MS Office 2007) and do:

1. File Open
2. then on file types select dBase files (*.dbf)
3. then select the file, and excel will open that file.
4. Then do save as: Microsoft Excel Workbook (*.xls)

However if the database is from two or more files you should use HB OLE to transfer the file and format them the way you like to be.

Re: How to Export to Excel

Posted: Sun Nov 02, 2008 3:32 pm
by Rathinagiri
You can use Harbour OLE also.

Kindly see \hmg\samples\ole\demo.prg

Re: How to Export to Excel

Posted: Mon Nov 03, 2008 6:29 am
by mol
Many thanks for your answers,
Marek

Re: How to Export to Excel

Posted: Tue Nov 04, 2008 7:00 am
by mol
To Rathinagiri:
I tried ole\demo.prg
It's very useful.
Can you tell mi if I can do it "silent" - without opening window with MS Excel?

Marek

Re: How to Export to Excel

Posted: Tue Nov 04, 2008 9:07 am
by Rathinagiri
I don't know. :( Let me try.

Re: How to Export to Excel

Posted: Fri Nov 21, 2008 1:24 pm
by mol
Can you help me how to open existing XLS sheet and write some data at the first empty cell in "A" column?

Don't you know where can I find something about using OLE and excel?

Re: How to Export to Excel

Posted: Sun Nov 23, 2008 5:39 pm
by bruno
May be you can try using MiToprint library from jose miguel


http://www.embalajesterra.com/misdoc/ej ... NTOv23.zip


the library can export a database report to spreadsheet format

i think that a time ago Jose Miguel change to use Openoffice in place of Microsoft Office

In previous versions it use excel , may be I can find an old version for you, try it

Bruno

Re: How to Export to Excel

Posted: Tue Nov 25, 2008 4:25 pm
by bruno
I have version 2.0 of MiTprinto if you like , let me know
and I send tou you by mail


Bruno

Re: How to Export to Excel

Posted: Tue Nov 25, 2008 5:17 pm
by Rathinagiri
I think it doesn't have the library you mention.

Please send the code to connect to Openoffice as you mentioned.

Thanks in Advance.