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

Free Support Forum - aspose.com

Blank row insert above while adding a template into bookmark

Hi,

While inserting a new template(docx) into bookmark, it always insert a new blank line above the record.
I also try the sample code as given by imarn.rafique but it does not solve my issue.
Please help me resolve the said issue. Please see attachment for the same.

Regards,</div>
Nausher

Hi Nausher,

Thanks for your inquiry. It would be great if you please share following detail for investigation purposes. I am afraid, I have not found any attachment in this forum thread.


  • Please attach your input Word document.
  • Please

    create a standalone/runnable simple application (for example a Console
    Application Project
    ) that demonstrates the code (Aspose.Words code) you used to generate
    your output document

  • Please attach the output Word file that shows the undesired behavior.
  • Please
    attach your target Word document showing the desired behavior. You can
    use Microsoft Word to create your target Word document. I will
    investigate as to how you are expecting your final document be generated
    like.

As soon as you get these pieces of information to
us we’ll start our investigation into your issue.

Hi,

Thanks for your reply, i have solve the issue by using below line of code.

bookmark.BookmarkStart.ParentNode.Remove();

Regards,
Nausher

Hi Nausher,

It is nice to hear
from you that you have solved your issue. Please feel free to ask if
you have any question about Aspose.Words, we will be happy to help you.