Hi,
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?
2)
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);
section.AppendChild(addednode);
doc.AppendChild(section);
doc.Save(dest);
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.
Thanks,
Marios