|
|
Rank: Newbie
Joined: 2/27/2009 Posts: 76 Location: Paris, France
|
Hello.
I've generate a HTML page, that will be used for printing.
I added a footer/header in page properties:

but unfortunately the HTML output remained unchanged.
Is there a way to set a header and footer in a HTML document, that be visible when printing the page?
Thanks.
|
|
Rank: Newbie
Joined: 10/28/2002 Posts: 1,283 Location: AT
|
Hi,
the header and footer do not apply to the html output format, only to word, rtf and pdf
|
|
Rank: Newbie
Joined: 2/27/2009 Posts: 76 Location: Paris, France
|
However in HTML format is possible to add a page break.
So, the concept of "page" exists in HTML, and, eventually, could take in consideration the page headers and footers...
Now, a not very elegant solution is to set manually the footers and headers after each page break, that is not very commode and efficient.
|
|
Rank: Newbie
Joined: 11/2/2009 Posts: 1 Location: Amersfoort (NL)
|
This is becomming much more interesting with the rise of ,Flying Saucer, a project within SUN that delivers a great way of generating a PDF from XHTML (thanks for this support in 2010, saves me a 'correction') It supports lots of things from CSS3. E.g. with
Code:.pageFooter { position: running(pageFooter); }
@page { @bottom-right { content: element(footer) element(pageFooter) ; } }
You get a great footer on each page if you generate the PDF from xhtml OR if you print the HTML from the browser (if the browser supports this)
So putting the footer (and headers) in a div when generating the XHTML would be very interesting. Now I have to include a separate div assign specific classes to it.
Btw, pagenumbering also works:
Code:.pagenumber:before { content: counter( page ); }
.pagecount:before { content: counter( pages ); }
So translating the
Code:<field [type="..."]/> from the sps files to divs with id's and include these css things would be very, very interesting.
edit: used code tags for the code
|
|
|
guest |