I'm struggling to see how to programmatically keep track of the relevant Y position to give to the FixedContentEditor after adding dynamically created elements such as tables and Text that can vary in height.
An example would be Drawing a Block that contains text from a SQL Query. This text could be one line long or 30 lines long and therefore the height of the text can vary greatly (below its in dtJobHeader.Rows(0).Item("Comment")). I need to be able to tell the editor.position.translate where it needs to move to and draw the next block after the previous block is drawn.
editor.Position.Translate(defaultLeftIndent, currentTopOffset)
editor.DrawBlock(DrawBlock(dtJobHeader.Rows(0).Item("Comment")), New Size(maxWidth, Double.PositiveInfinity))
currentTopOffset += ????
editor.Position.Translate(defaultLeftIndent, currentTopOffset)
editor.DrawBlock(DrawBlock("Some Text Here, etc, etc, etc"), New Size(maxWidth, Double.PositiveInfinity))
Private Function DrawBlock(texttodraw As String) As Block
Dim block As New Block()
block.GraphicProperties.FillColor = RgbColors.Black
block.HorizontalAlignment = HorizontalAlignment.Left
block.TextProperties.Font = FontsRepository.Helvetica
block.InsertText(texttodraw)
Return block
End Function