Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Thu, 14 Aug 2008 13:46:21 +0100,    group: microsoft.public.xsl        back       


Printing   
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
date: Thu, 14 Aug 2008 13:46:21 +0100   author:   John Peach

Re: Printing   
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/
date: Thu, 14 Aug 2008 15:43:54 +0200   author:   Martin Honnen

Re: Printing   
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
date: Thu, 14 Aug 2008 15:28:31 +0100   author:   John Peach

Re: Printing   
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/
date: Thu, 14 Aug 2008 16:35:15 +0200   author:   Martin Honnen

Re: Printing   
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
date: Thu, 14 Aug 2008 17:58:27 GMT   author:   Neil Smith [MVP Digital Media]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us