Home
Download
Screenshots

Wiki
Plugins
Translations
Developers
Donate

Forums/Help
Contact Us

StrokeIt

Include LuaCOM.dll in Lua Script failure

Posted by Leo 
Leo
Include LuaCOM.dll in Lua Script failure
January 26, 2010 01:27PM
Hello Jeff,

I want to use LuaCOM.dll

Using Lua to dynamically load LuaCOM is simpler. 
Just call require  "luacom" in your Lua script, and make 
sure the file luacom.dll is in your 
LUA_CPATH environment variable 
and that Lua’s DLLs (e.g. lua5.1.dll) are in your PATH.

I copied [url=http://luaforge.net/frs/download.php/3405/luacom-1.4-luabinaries.zip]this[/url] one to E:\Program Files\TCB Networks\StrokeIt\Scripts\lib


[URL=http://img19.imageshack.us/i/supportteam.png/][/URL]
[URL=http://img18.imageshack.us/i/excellua.png/][/URL]

script

require [[luacom]]

excel = luacom.CreateObject("Excel.Application")
excel.Visible = true 

local book  = excel.Workbooks:Add()
local sheet = book.Worksheets(1)
for row=1,100 do
  sheet.Cells(row, 1).Value2 = math.floor(math.random() * 100)
end

Help would be nice. WinXP sp3, 0.97 Pro

Thanks Leo



Edited 4 time(s). Last edit at 01/26/2010 01:33PM by Leo.
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 9 plus 4?
Message: