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 ï¬Âle 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.