In generating a long printout using wx.html.HtmlPrintout() I'm having to call wx.Printer.Print() multiple times (once for each page). No problem, except it puts up this annoying little "Cancel" popup every time. Is there any way to disable the popup?
Alternatively, and better yet, is there some way to insert a page break into the HTML printout so I don't have to do this page-by-page silliness?
I tried the trick of
style="page-break-before: always"
But it does not seem to work. I'm guessing the HTML support in wx is not CSS2 compliant.
In generating a long printout using wx.html.HtmlPrintout() I'm having to call wx.Printer.Print() multiple times (once for each page). No problem, except it puts up this annoying little "Cancel" popup every time. Is there any way to disable the popup?
Alternatively, and better yet, is there some way to insert a page break into the HTML printout so I don't have to do this page-by-page silliness?
I tried the trick of
style="page-break-before: always"
But it does not seem to work. I'm guessing the HTML support in wx is not CSS2 compliant.
Michael
Hi Michael,
I have no response for the first question ...
But, for the second, I have tested and used successfully :
<div style="page-break-before:always"> </div>
Python 2.3.4 and wxPython 2.6.1.0 on WinXP and Mandriva 10.1
which purports to list all the tags supported by HTML classes in wx, but 'style' is not mentioned under 'div' or any other tag. In fact "style" does not appear anywhere on that page. Evidently that page is out of date.
which purports to list all the tags supported by HTML classes in wx, but 'style' is not mentioned under 'div' or any other tag. In fact "style" does not appear anywhere on that page. Evidently that page is out of date.
Styles attributes (and any css for that matter) are not supported by wxHTML. The "<div style="page-break-before:always">" string is simply hard-coded in there to add the page break feature.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!