I am using evaluation version of Aspose Words 6.1.0,
I am replacing the bookmarks in the templates with HTML content like this…
string DocItemTextHTML = "<body>" +
"<table border='1' align='center'>" +
"<tr align='center'>" +
"<td>No#</td>" +
"<td>Req.</td>" +
"<td>Description</td>" +
"<td>Results</td>" +
"<td>ActualResults</td>" +
"<td>Grade</td>" +
"<td>Date</td>" +
"</tr>" +
"<tr align='center'>" +
"<td>Number</td>" +
"<td>Name</td>" +
"<td>Test</td>" +
"<td>Criteria</td>" +
"<td>Test 1</td>" +
"<td> </td>" +
"<td> </td>" +
"</tr>" +
"</table>" +
"</body>";
Bookmark bookDocDocItemText = docDocItem.Range.Bookmarks["SpecItemText"];
bookDocDocItemText.Text = ""; //error getting here
builderDocItem.MoveToBookmark("SpecItemText");
builderDocItem.InsertHtml(DocItemTextHTML);
builderDocItem.EndBookmark("SpecItemText");
if the HTML content is like above, i am getting an err…
but when i am attaching <br>
tag or <some text><br>
after the body tag/before table tag in the above HTML, I am not getting any error, it working fine…
but my requirement is, i should not add any text or
tags after the body tag or before the table tag…
i am not able to find why the error is coming when the HTML starts like <body><table>......
and why the error is not coming when the HTML starts like <body>table description<br><table>.................</table></body>
Any sugestions would be appreciated…