lua-users home
lua-l archive

Re: LuaCOM - more questions

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi, Terry,
This:
> doc = word.Documents.Add()
should be this:
 doc = word.Documents:Add()
Method calls use ':'. Reading and writing properties use '.'.
--
Fabio Mascarenhas
On 1/31/06, Terry Bayne <tbayne@tbayne.net> wrote:
> Good Morning.
>
> I've started using LuaCOM and I have a few questions. I am not a COM guru so please excuse my ignorance.
>when I try to create a new document - most of the examples on the web
do >something like this:
>
> word = luacom.CreateObject("Word.Application")
> assert(word)
> word.visible = true
> -- Works good up to this point
> doc = word.Documents.Add()
>
> The last statement fails. I've tried passing parameters, even tried this:
> All this gets me is a type mismatch error.

AltStyle によって変換されたページ (->オリジナル) /