I am using C# to create a word document from a template (Word) that contains several bookmarks. My application generates different tables and paragraphs at specific bookmarks. However, there is a blank page created in the end of the document which I am not sure how to get rid of. I searched on the internet but could not find much help. Will appreciate if anyone could provide some guidance.

As you are not showing us the template, nor the code to fill it, I can only give you a few hints:

The blank page, exist on your template? If yes, then remove it from the template.
Is generated due to some fields being filled with blanks? If yes, don't fill those fields with blanks.
Is generated because you always insert a new page mark? I yes, insert the page mark only if really is needed.

Hope this helps

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.