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_
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
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
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
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
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,
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
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