On Fri, Feb 22, 2008 at 1:00 AM, wlprg00 <[EMAIL PROTECTED]> wrote: > Hi, I am trying to print on Linux by using the > printing.wx.lua. Unfortunately it gives only an empty > ..ps. As well as the console provides the following > output: > > Error: Lua: Error while running chunk > [string "printing.wx.lua"]:143: attempt to call field > 'wxPrintDialogDataFromPrintData' (a nil value) > stack traceback: > [string "printing.wx.lua"]:143: in function 'Print' > [string "printing.wx.lua"]:273: in function <[string > "printing.wx.lua"]:273> > > Any ideas how this can be fixed? >
Yes, change the code to this as we now have overloaded functions. function Print() local printDialogData = wx.wxPrintDialogData(printData) local printer = wx.wxPrinter(printDialogData) ... Regards, John ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users