Free Support Forum -

Extra Carriage Return when using builder.writeln


I am using aspose.word to open a Word document, go to a bookmark and then write some text at that position. The problem I have is that after it writes the text it also adds another line - it could be a carriage return, line feed. How can I stop this from happening? It causes the rest of the document to move down a line.



WriteLn method writes a text and a paragraph break in the end. Use Write method to insert just text.