Re: [wxlua-users] wxGrid and wxPrint help

2009-02-02 Thread John Labenski
I found another "fix" too. Do NOT ever use "wx.wxExit(0)" to close wxWidgets apps. There are a lot of things going on behind the scenes for GUI apps and you should call wxFrame::Destroy() if you want to close the app nicely, see also wxApp::ExitMainLoop(). In fact, your event handler for wx.wxEVT_

Re: [wxlua-users] wxGrid and wxPrint help

2009-02-01 Thread Éjjeli Őrjárat
I found the problem now, and fixed it: hep = wx.wxHtmlEasyPrinting("My print's preview",myApp) hep:SetHeader("@PAGENUM@/@pages...@. page") prnSetup = hep:GetPageSetupData() prnData = hep:GetPrintData() prnData:SetNoCopies(3) tMinoseg = {wx.wxPRINT_QUALITY_DRAFT,wx.wxPRINT_QUALITY_LOW,wx.wxPR

Re: [wxlua-users] wxGrid and wxPrint help

2009-01-30 Thread Éjjeli Őrjárat
Thanks for the reply, here is a code which demonstrate the error: require "wx" myApp = wx.wxFrame(wx.NULL,-1,"Testing HtmlEasyPrinting",wx.wxDefaultPosition,wx.wxSize(200,100)) btn = wx.wxButton(myApp,-1,"Press me") btn:Connect(wx.wxEVT_COMMAND_BUTTON_CLICKED,function(event) sHTML = [[Please clo

Re: [wxlua-users] wxGrid and wxPrint help

2009-01-26 Thread John Labenski
On Thu, Jan 22, 2009 at 11:54 AM, Éjjeli Őrjárat wrote: > My problem has been partially solved - wxHtmlEasyPrint works perfect. I have > to print checks and bills, html format is the best solution, easy to > generate it form grid cells. But after the preview, when I exit from the > application, it

Re: [wxlua-users] wxGrid and wxPrint help

2009-01-26 Thread Éjjeli Őrjárat
Sorry for writing again, I don't want to hurry anybody, but my application is almost ready, and I was unable to fix this error. Any ideas? -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell

Re: [wxlua-users] wxGrid and wxPrint help

2009-01-22 Thread Éjjeli Őrjárat
My problem has been partially solved - wxHtmlEasyPrint works perfect. I have to print checks and bills, html format is the best solution, easy to generate it form grid cells. But after the preview, when I exit from the application, it shown MS's error reporter window, so my app detected a problem,

Re: [wxlua-users] wxGrid and wxPrint help

2009-01-12 Thread John Labenski
On Sun, Jan 11, 2009 at 5:58 AM, Éjjeli Őrjárat wrote: > Hi! > My previous e-mail went to a wrong topic, sorry. again: > I have a little problem.. My application loads the GUI from the xrc file > generated by DialogBlocks. I am using wxGrid-s, which are work very well - > except I can't re-size th

[wxlua-users] wxGrid and wxPrint help

2009-01-11 Thread Éjjeli Őrjárat
Hi! My previous e-mail went to a wrong topic, sorry. again: I have a little problem.. My application loads the GUI from the xrc file generated by DialogBlocks. I am using wxGrid-s, which are work very well - except I can't re-size them. Once I called grid:CreateGrid(rows,cols), I can't use this cal