Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Header and footer Issue with dynamically generated Word document

$
0
0

Hi,

I'm facing with a tough problem of generating a Word doc with Exact Layout from data pulled from a database.  While I'm able to generate a Word doc from db data on demand leveraging office XML standard, see below

<html xmlns:o="urn:schemas-microsoft-com:office:office"
      xmlns:w="urn:schemas-microsoft-com:office:word" 
      xmlns="http://www.w3.org/TR/REC-html40">

...

The issue lies in the Exact Layout of such a Word doc.  Currently the generated Word doc has double header and footer at the last page, question, how to eliminate the extra header and footer at the last page?

I was wondering if Word CSS guide supports something like below:

@page lastpage
{
mso-header: none;
mso-footer: none; 

  }

or

@page lastpage
{
 mso-header: false;
 mso-footer: false; 

  }

Thanks in advance.

Don


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>