Hi Dima, thanks for reply! My Problem: If there is a pagebreak in an RTFText (see the sample below) one part of the text is on the fist page, and the other part is on the second page. I need the Height of the piece of RTFText from the second page or better the CurrentY-Position (like in the VSView8.OCX) to print further objects. AvailableBlockFlowHeight works not with RenderRTFText, I get always the same Value!
Thanks, Regards
Sample:
rrtf.Load(RTFFile_1)
rrtf.X = New Unit(VALUEFROMDATABASE, UnitTypeEnum.Mm)
rrtf.Y = New Unit(VALUEFROMDATABASE, UnitTypeEnum.Mm)
rrtf.Width = New Unit(VALUEFROMDATABASE, UnitTypeEnum.Mm)
Me.C1PrintDocument1.Body.Children.Add(rrtf)
dHeight = rrtf.CalcSize(rrtf.Width, Unit.Auto).Height
Dim Text1 As New RenderText
Text1.Y = New Unit(dHeight + VALUEFROMDATABASE, UnitTypeEnum.Mm)
Text1.X = New Unit(VALUEFROMDATABASE, UnitTypeEnum.Mm)
Text1.Text = "DEMO ......"
Me.C1PrintDocument1.Body.Children.Add(Text1)
dHeight = Text1.CalcSize(VALUEFROMDATABASE, Unit.Auto).Height
rrtf.Load(RTFFile_2)
rrtf.X = New Unit(VALUEFROMDATABASE, UnitTypeEnum.Mm)
rrtf.Y = New Unit(dHeight + VALUEFROMDATABASE, UnitTypeEnum.Mm)
rrtf.Width = New Unit(VALUEFROMDATABASE, UnitTypeEnum.Mm)
Me.C1PrintDocument1.Body.Children.Add(rrtf)
dHeight = rrtf.CalcSize(rrtf.Width, Unit.Auto).Height