Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Nov 21, 2019 1:55 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: make run scripts without complete office
PostPosted: Fri Mar 02, 2012 1:29 pm 
Offline

Joined: Thu Aug 10, 2006 6:04 am
Posts: 72
i created a script on a pc with office 2007 and rb 2011 rel 4.2 installed, that works

Dim xlApp As ExcelApplication
xlApp = New ExcelApplication
xlapp.Workbooks.Open("C:\file.xlsx")
Dim xlSht As ExcelWorksheet = xlApp.Sheets(1)
Dim xlRng As ExcelRange = xlSht.Cells(1, 1)
TextField1.Text = xlRng.Value


instead, on a pc without office installed, it doesnt work; what i have to install on the second pc, without office? i tryed downloading many runtimes, but never worked


Top
 Profile  
Reply with quote  
 Post subject: Re: make run scripts without complete office
PostPosted: Fri Mar 02, 2012 3:06 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
Quote:
what i have to install on the second pc

Office. Or at least Excel. All that code does is talk to Excel. If Excel isn't on the machine, there's nothing you can do.


Top
 Profile  
Reply with quote  
 Post subject: Re: make run scripts without complete office
PostPosted: Sat Mar 03, 2012 8:04 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
You can use our XLBookMBS class from our plugins with libXL to read/write excel files without having Microsoft Office or Excel installed.

see
http://www.monkeybreadsoftware.de/realb ... -xls.shtml

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group