|
From: Éjjeli Ő. <ejj...@gm...> - 2009-01-22 16:54:15
|
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...
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")
Thanks in advance:
Attila
|