I want to take a xhtml document and print it to A4 paper with headers on each page, what is the best way to do this ? please advise John
John Peach wrote: > I want to take a xhtml document and print it to A4 paper with headers on > each page, what is the best way to do this ? Check whether CSS 2 with its media print related settings helps dy defining a print stylesheet: http://www.w3.org/TR/CSS21/page.html However support for such stuff varies from browser to browser. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/
IE6 looks to completly ignore @page, any other ideas. It for use on an intranet and only has to support IE6 and above "John Peach" wrote in message news:LOVok.6273$RN6.2314@newsfe18.ams2... >I want to take a xhtml document and print it to A4 paper with headers on >each page, what is the best way to do this ? > > please advise > > John
John Peach wrote: > IE6 looks to completly ignore @page, any other ideas. It for use on an > intranet and only has to support IE6 and above Maybe http://www.meadroid.com/scriptx/index.asp does what you want. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/
On Thu, 14 Aug 2008 16:35:15 +0200, Martin Honnen wrote: >John Peach wrote: >> IE6 looks to completly ignore @page, any other ideas. It for use on an >> intranet and only has to support IE6 and above > >Maybe http://www.meadroid.com/scriptx/index.asp does what you want I've used ScriptX and it works very well indeed, assuming you can depend on clients to install trusted ActiveX controls - which is fair, in a company intranet but not on the wild wild web. It will also allow you to specify and control which printers the content is sent to, and is worth the money if IE is your only option. You could also consider using Apache FOP processing XML to PDF which means you have a better control over the page rendering intent and layout. If I had to do it again, I'd use FOP, or some other PDF generation (such as FPDF in PHP) to do the job. HTH Cheers - Neil ------------------------------------------------ Digital Media MVP : 2004-2008 http://mvp.support.microsoft.com/mvpfaqs