From: John L. <jla...@gm...> - 2008-02-22 19:05:08
|
On Fri, Feb 22, 2008 at 1:00 AM, wlprg00 <wl...@ya...> 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 |