Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying simple to output some text from c# program to a new word document
but i have weird problem that a lot of my output is coming up side down.
Any word that doesn't end up with a letter is jumping to the end of the sentence.
for example.

C#
DocX doc= DocX.Create(filePath);
Paragraph p1 = template.InsertParagraph();
p1.AppendLine("This line contains a ").Append("bold").Bold().Append(" word.");
p1.AppendLine("Here is example with question mark?");
p1.AppendLine();
p1.AppendLine("Can you help me figure it out?");
p1.AppendLine();


HERE IS THE RESULT:
<img src='http://s18.postimg.org/42puncsw5/example.jpg' border='0' alt="example" />
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900