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

Free Support Forum - aspose.com

Aspose words builder requests


I have to two requests if that is possible:

1) i have a text and i want to add it a document:
string str = “aspose”;
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write(str );
doc.Save(dest); // dest is the path for the dest file

However, the Write(str) function adds a new line at the end. Is there any other way to write a string to a file with not appending a new line by default? Do you provide us with another way?


Also if i want to append a node to an empty document there is no other way exception this one:

Body body = new Body(doc);
Section section = new Section(doc);

I just want to append the addednode with not using section and body in the first place. The reason?
Because is adding a new paragraph at the beginning, which i don’t want.

So simply i just want to add the node in the document with not using section and body.

I look forward to hearing from you soon.


Hi Marios,

Thanks for your inquiry. Could you please attach your input Word document and expected document here for our reference? We will investigate the structure of your expected document as to how you want your final output be generated like. You can create expected document using Microsoft Word. We will then provide you code to achieve the same using Aspose.Words.

Best regards,