We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Header not getting showned


We are using the ASPOSE.net componant to convert the document & show in aspose mht format. When we tried to convert the document with header then header from the existing document does not gets displayed.

We want to show our existing document header as it is while converting & showing it in ASPOSE MHT format.

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Please advice.




<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Actually, MHTML does not support header/footer natively. To support these features MS Word adds some custom tags and CSS attributes, like:

@page Section1

{size:14.0in 8.5in;


margin:.2in 22.3pt .2in .35in;



mso-even-header:url("Mortgages.Charges.Register_files/header.htm") eh1;

mso-header:url("Mortgages.Charges.Register_files/header.htm") h1;

mso-even-footer:url("Mortgages.Charges.Register_files/header.htm") ef1;

mso-footer:url("Mortgages.Charges.Register_files/header.htm") f1;

mso-first-header:url("Mortgages.Charges.Register_files/header.htm") fh1;

mso-first-footer:url("Mortgages.Charges.Register_files/header.htm") ff1;


We will consider an ability to support this in Aspose.Words. You will be notified as soon as this feature is supported.

Best regards,