after I execute: DocumentBuilder.MoveToCell(0, 0, 0, 0)
if the cell is empty, builder.CurrentNode returns null.
Shouldn't it return the cell's node?
What I'm trying to do is to get at the enclosing section with the following code:
Private Function getCurrentSection() As Section
Dim node As Node = _builder.CurrentNode
While node.NodeType <> NodeType.Section
node = node.ParentNode
Return DirectCast(node, Section)
Is this an oversight or is there some design intent underlying this behavior?
My obvious workaround is to either place a space in the cell or to bookmark the cell and MoveToBookmark. Is there a better way?
John Hancock Life Insurance