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

Free Support Forum - aspose.com

Footer text no longer accepts font properties

Hello,

Ever since I moved to latest version, the footer text is in default font from Word (Times New Roman 12 points), although the html that is used (inserthtml function) contains font Calibri with size smaller.

Html:



Persoonlijk Financieel rapport






Persoonlijk Financieel rapport : Cornelis Jacobus Wijnings en Sibel Wijnings (16-12-2010) - [PAGE]/[NUMPAGES]


replacing the font-size with any other value is without any effect.
How can I get the font to be changed preferably by html code with htmlinsert function.

Best regards,

Kees

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

Thanks for your request. The problem occurs because, currently, Aspose.Words does not support inheriting styles from parent elements. Currently, Aspose.Words expects that font formatting is set in element, formatting of paragraph – in

or

elements etc…

In your HTML font is specified in paragraph, if you specify font in span all will work as expected. Please see the following HTML sample:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta http-equiv="Content-Style-Type" content="text/css" />

<title>Persoonlijk Financieel rapport </title>

<base href='http://localhost:7777/' />

</head>

<body>

<div class="pagefooter" style='height: 40px;'>

<hr />

<p style='text-align: center;'>

<span style='font-family: Calibri; font-size: smaller;'>Persoonlijk Financieel rapport : Cornelis Jacobus

Wijnings en Sibel Wijnings (16-12-2010) - [PAGE]/[NUMPAGES] </span>

</p>

</div>

</body>

</html>

I linked your request to the appropriate issue, you will be notified as soon as it is resolved.

Best regards,

The issues you have found earlier (filed as WORDSNET-2021) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(30)