Actually, this does not seem to be a bug. As it is stated in Aspose.Words API reference, CurrentNode is a cursor of DocumentBuilder and points to a Node that is a direct child of a Paragraph. In your case you do not insert a paragraph to the cell so that's why CurrentNode is null. Avoid the use of CurrentNode then. What if you explicitly create an empty paragraph, insert it to the cell and then pass it to InsertDocument, like this:
builder.StartTable();
builder.InsertCell();
Paragraph paragraph = new Paragraph(builder.Document);
Hello DmitryV, I have recieved a exeception on trying to end the table I can processes the rtf no problem and when I call builder.EndTable() it brings up an exception of
"cannot end table in this state". Is there a clue to this?
Here I am using
public void InsertRtf(Document suppDoc, DocumentBuilder builder, string rtf)
MemoryStream stream = new MemoryStream(System.Text.Encoding.ASCII.GetBytes(rtf));
Document rtfDoc = new Document(stream);
Paragraph paragraph = builder.InsertParagraph();
InsertDocument(paragraph, rtfDoc);
////==============
builder.EndTable();
Is there manipulation of state being performed here,and what are the states that cause an exception?
Please try calling EndRow before you call EndTable. If this does not help, send me the entire code snippet or even a zipped sample project to let me reproduce the issue completely.