Rendering XHTML as MS Word Document - Headers
Posted
by Paul
on Stack Overflow
See other posts from Stack Overflow
or by Paul
Published on 2009-05-27T18:56:24Z
Indexed on
2010/05/29
19:02 UTC
Read the original article
Hit count: 224
Hi,
I generate an XHTML document and set the Mime type as "application/msword" so it opens in Word.
To create a header I appear to have to reference an external file thus:
<style>
...
@page{mso-footnote-separator:url("**OUT_files/header.htm**") fs;
mso-footnote-continuation-separator:url("OUT_files/header.htm") fcs;
mso-endnote-separator:url("OUT_files/header.htm") es;
mso-endnote-continuation-separator:url("OUT_files/header.htm") ecs;}
@page Section1{
mso-header-margin:.5in;
mso-header:url("OUT_files/header.htm") h1;
} }
...
</style>
Does anyone know how to reference a div defined within the main XHTML document itself, without having to reference an external file?
Thanks
© Stack Overflow or respective owner