I think you're always going to be struggling against the fact that HTML 
isn't really about page layout (although CSS makes it a lot stronger in 
that area).

You may want to consider using PDF generation using the freely available 
 iText library (http://www.lowagie.com/iText/).

I have done this on one of the projects I am working on, using a servlet 
to deliver a PDF file.  It works very nicely and the layout can be 
controlled precisely.  Admittedly, I'm only dealing with single page 
reports...

There are also ways of writing XSLT stylesheets that translate XML 
directly to PDF FOP (http://xml.apache.org/fop/).  

>Wednesday, July 17, 2002, 12:46:13 PM, you wrote:
>
>PK> Hi all,
>PK> I'm building a web app for my company that will help us create quotes. The 
>PK> quotes are stored as XML files and get translated/displayed in a frame with 
>PK> XSLT. Problem is when printing the quotes, there's no way to specify what 
>PK> the margins should be. I've tried setting the attributes of the body tag in 
>PK> the XSL style-sheet but I'm not getting satifactory results. I don't want 
>PK> the user to depend on the browser's Page Setup settings for determining what 
>PK> the page would look like finally. Is there a way to set the page margins 
>PK> using a style-sheet or something? If there is, I'd like to know, thanks.
>
>PK> Regards,
>
>PK> Paul
>
>
>PK> _________________________________________________________________
>PK> MSN Photos is the easiest way to share and print your photos: 
>PK> http://photos.msn.com/support/worldwide.aspx
>
>
>PK> --
>PK> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>PK> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
>  
>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to