Is there any way to force page breaks in HTML Easyprinting at certain points in the documents ?
If not, I would appreciate any suggestions one where to start creating my own print framework that would allow support pf this.
I am looking for something like a css style attribute list “page-break-after”
Thanks in advance.
g.
Geoff Skerrett a écrit :
Is there any way to force page breaks in HTML Easyprinting at certain points in the documents ?
If not, I would appreciate any suggestions one where to start creating my own print framework that would allow support pf this.
I am looking for something like a css style attribute list "page-break-after"
Thanks in advance.
g.
I use wx.html.HtmlPrintout and the next works :
prv = wx.html.HtmlPrintout(self.GTitre)
txt = "Page1...."
txt += '<div style="page-break-before:always"> </div>'
txt += "Page2...."
prv.SetHtmlText(texte)
Hope this help you ...
···
--
Hugues JEAN-BAPTISTE (hjb@agorinfo.fr)
AGORINFO S.A.S. (http://www.agorinfo.fr)
Is this actually "production code" that is in use ??
The Html Overview of the wx manual says that the only attribute of the
<div> tag that is recognized
Is the "align" attribute.
I did try your suggestion, but could make it work in my code.
To work around this I decided to add a 'style =
"page-break-after:always"' attribute to the tag where I want the page
break and give the user the option of previewing in the browser and then
printing from there to get the page breaks.
... Anyone have any other suggestions ?
G.
···
-----Original Message-----
From: Hugues JEAN-BAPTISTE [mailto:hjb@agorinfo.fr]
Sent: Thursday, October 11, 2007 12:33 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] HtmlEasyPrinting and Page Breaks
I use wx.html.HtmlPrintout and the next works :
prv = wx.html.HtmlPrintout(self.GTitre)
txt = "Page1...."
txt += '<div style="page-break-before:always"> </div>'
txt += "Page2...."
prv.SetHtmlText(texte)
Hope this help you ...
--
Hugues JEAN-BAPTISTE (hjb@agorinfo.fr)
AGORINFO S.A.S. (http://www.agorinfo.fr)