H3 spacing issues

I’m loading a Doc file with mail merge fields and merging HTML content into the fields. however dispite any styling I do before loading the document or programaticly to the document, word seems to change the Spacing After values to AUTO for <h3> which causes a much larger gap than the client wants. I’ve attached the mailmerge file as well as a screen shot of what the output looks like.

Any help to resolve this issue would be greatly appreciated.

-Jabin

Hi

Thanks for your inquiry. Could you also attach sample data (HTML)? I will check the issue and provide you more information.
Best regards.

Attached is a sample of HTML that would be merged into the section.

Hi

Thank you for additional information. I linked your request to the appropriate issue. You will be notified as soon as it is resolved.
As a workaround, you can try performing post-processing after inserting HTML. For example, you can try using code like the following:

string html = File.ReadAllText(@"Test001\mergedHTML.html");
builder.InsertHtml(html);
NodeCollection paragraphs = doc.GetChildNodes(NodeType.Paragraph, true);
foreach(Paragraph paragraph in paragraphs)
{
    if (paragraph.ParagraphFormat.StyleIdentifier == StyleIdentifier.Heading3)
    {
        paragraph.ParagraphFormat.ClearFormatting();
        paragraph.ParagraphFormat.StyleIdentifier = StyleIdentifier.Heading3;
    }
}

Hope this helps.
Best regards.

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

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