tags:

views:

224

answers:

1

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

A: 

If you are very lucky, a data: URL might work, maybe, in Word 2007? I haven't tried that myself, but MS introduced partial support for data: URLs in IE8.

plutext