Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two problems with DBF to Excel function
Message
De
15/01/2009 17:11:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01373048
Message ID:
01374213
Vues:
29
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Cetin,
>
>In the DBFToExcel your solution worked perfectly and Kevin's with 39 format didn't. I don't know what other formats to try.
>
>However, I have also a different program called CombineXlsFiles (posted here by Craig Boyd).
>
>I can not use your suggestion as is in this program. The piece I'm trying to make to work is
>
>
>		IF '12' $ .VERSION && XL 2007
>* Kevin Delaney's suggestion
>            	* Cetin Basoz suggestion
>			loExcel.ActiveWorkbook.Saved = .T.
>			.WorkBooks(1).SAVEAS(m.tcDestination) && 39
>			loExcel.ActiveWorkbook.CLOSE(0)		
>		ELSE
>			.WorkBooks(1).SAVEAS(m.tcDestination)
>		ENDIF
>
>
>I can not make this to work so far and this is kind of urgent. Can somebody with Office 2007 please suggest a workaround?
>
>Thanks a lot in advance.

Sorry but I don't understand what the problem is and why do you use 39 (old excel format). Your code is a bit strange. Why do you ever need to check the version? In either case you are saving as 'tcDestination'. Why would you use activeworkbook for one and not for the other. I don't even understand if you have one or more workbooks.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform