On Thu, Jan 22, 2009 at 11:54 AM, Éjjeli Őrjárat <ejjeliorja...@gmail.com> 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 shown MS's error reporter window, so my app detected a > problem, please inform MS about it... It happened after I added these few > lines: > > local hep = wx.wxHtmlEasyPrinting("Nyomtatás",MyApp) > > local prnSetup = hep:GetPageSetupData() > local prnData = prnSetup:GetPrintData() > prnData:SetNoCopies(iOldalak) -- I want to set here how many pages to print. > local tMinoseg = > {wx.wxPRINT_QUALITY_DRAFT,wx.wxPRINT_QUALITY_LOW,wx.wxPRINT_QUALITY_MEDIUM,wx.wxPRINT_QUALITY_HIGH} > prnData:SetQuality(tMinoseg[tSettings["minoseg"]]) > prnSetup:SetPrintData(prnData) > > hep:PreviewText(sHTML) > > After I close the preview window, seems everything is ok, but the error > comes after I shotdown the whole application...
Can you post the simplest, runnable, code possible that demonstrates this to help me debug it? The one thing to be careful about is making sure that you don't use the local keyword for something that you need to exist beyond the function it was created in. > By the way, is there any way to translate the preview dialog? The buttons > aren't translated. Same with DatePickerCtrl, even if I used > os.setlocale("","time") I do not know much about internationalization, but this may help. http://docs.wxwidgets.org/stable/wx_internationalization.html#internationalization Regards, John ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users