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.


On Aug 8, 2015 6:50 AM, "Milind Gupta" <> wrote:
       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?