lua-users home
lua-l archive

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


Is it possible that the Word Open() COM function takes more than one parameter? If I remember correctly in LuaCOM you'd need to provide all of them, there not being a way to have default params.

Hth,
Robby

On Aug 8, 2015 6:50 AM, "Milind Gupta" <milind.gupta@gmail.com> wrote:
Hi,
       I am using LuaCOM to open a word document but I get this error:

> word.Documents.Open("D:/1.docx")
COM error:(.\src\library\tLuaCOM.cpp,403):Type mismatch.
stack traceback:
        [C]: in function 'Open'
        stdin:1: in main chunk
        [C]: ?


The function works fine if I use it from VBA. Can anyone help me figuring out why this does not work?

Thanks,
Milind