Thanks in advance
Excel files?
Excel files?
Been wondering, any of you here have tried to open excel XLS files? any format of them (I know they may have changed with 2k or XP) as I need to open them and at least get the value of some cells, is that possible, to open and read XLS files?
Thanks in advance
			
			
									
									
						Thanks in advance
Re: Excel files?
Try this viewtopic.php?t=14864Kaiser wrote:Been wondering, any of you here have tried to open excel XLS files? any format of them (I know they may have changed with 2k or XP) as I need to open them and at least get the value of some cells, is that possible, to open and read XLS files?
Thanks in advance
PB 6.21 beta, PureVision User
						- 
				gnozal
 - PureBasic Expert

 - Posts: 4229
 - Joined: Sat Apr 26, 2003 8:27 am
 - Location: Strasbourg / France
 - Contact:
 
There is some great powerbasic code for Excel files : http://www.powerbasic.com/files/pub/pbw ... API_PB.zip
Maybe one of the experts around could translate it ?
			
			
									
									Maybe one of the experts around could translate it ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
						Hi, 
I'm working on this problem, my solution creates a BIFF2 file, but it needs double float numbers (see http://www.purearea.net/ and download "F64" librarys).
My program (TOXCEL) reads an ASCII file (called "TOX" file), and creates a XLS file. Download it at:
http://www.tcseries.com/FTP/TOXCEL.ZIP
I've included a test file (PRUEBA.TOX) and F64 librarys needed.
Enjoy
JOAQUIN
			
			
									
									
						I'm working on this problem, my solution creates a BIFF2 file, but it needs double float numbers (see http://www.purearea.net/ and download "F64" librarys).
My program (TOXCEL) reads an ASCII file (called "TOX" file), and creates a XLS file. Download it at:
http://www.tcseries.com/FTP/TOXCEL.ZIP
I've included a test file (PRUEBA.TOX) and F64 librarys needed.
Enjoy
JOAQUIN
Congratulations!  this is very useful.  Really esteem this lib 
Y a la española
 : ¡Felicides!  esto es muy útil!.  Realmente aprecio esta librería
			
			
									
									Y a la española
PB 6.21 beta, PureVision User
						- 
				gnozal
 - PureBasic Expert

 - Posts: 4229
 - Joined: Sat Apr 26, 2003 8:27 am
 - Location: Strasbourg / France
 - Contact:
 
Here is a HotBasic example : http://www.angelfire.com/space/netcensus/hot/hotxls.zip (include file with many functions).
			
			
									
									For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
						Kaiser or others, do you know how can I set Autofit propierty for all columns???.
Thank you for this lib!
			
			
									
									Thank you for this lib!
PB 6.21 beta, PureVision User
						- 
				Edwin Knoppert
 - Addict

 - Posts: 1073
 - Joined: Fri Apr 25, 2003 11:13 pm
 - Location: Netherlands
 - Contact:
 
Yes but it's difficult, here is a small example which obtains a few items from the xls file.
It was a rewrite from some example i found.
It does not much but you'll need to read the PDF's toroughly before you can modify this example.
The example was written in PowerBASIC:
http://www.powerbasic.com/support/forum ... 01984.html
			
			
									
									
						It was a rewrite from some example i found.
It does not much but you'll need to read the PDF's toroughly before you can modify this example.
The example was written in PowerBASIC:
http://www.powerbasic.com/support/forum ... 01984.html
2Bernard
Yes, I'ts very difficult, I think.
I do not know how to do it, but I have found a library in HotBasic, who reads a BIFF8 file (Author says)
Download HotXLS from
www.angelfire.com/space/netcensus/hotbasic.html
If you could translate it to PB I will be eternally gratefull.
JOAQUIN
			
			
									
									
						Yes, I'ts very difficult, I think.
I do not know how to do it, but I have found a library in HotBasic, who reads a BIFF8 file (Author says)
Download HotXLS from
www.angelfire.com/space/netcensus/hotbasic.html
If you could translate it to PB I will be eternally gratefull.
JOAQUIN
- 
				Edwin Knoppert
 - Addict

 - Posts: 1073
 - Joined: Fri Apr 25, 2003 11:13 pm
 - Location: Netherlands
 - Contact:
 

