Need help with preview text |
Post Reply |
Author | |
Axegrinder
Newbie Joined: 12 December 2011 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 12 December 2011 at 11:20pm |
Hi.
I would like the preview text below each report item to show the entire comment, not just the first three lines.
Can anyone please advise?
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I don't use previewItem but I guess this should work:
in form Load event
Me.wndReportControl.SetCustomDraw xtpCustomMeasurePreviewItem
Private Sub wndReportControl_MeasurePreviewItem(ByVal Row As XtremeReportControl.IReportRow, ByVal hDC As stdole.OLE_HANDLE, ByVal Width As Long, Height As Long)
Height = 100
End Sub
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Axegrinder
Newbie Joined: 12 December 2011 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Thanks for that, but I had figured that much out by myself.
The question is, rather than just setting the height = 100, is there a way to measure the text to be displayed and set the height to the appropriate amount? All I can do currently is guess based on the number of linefeeds in the text.
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Did you try to set alignment to .Record.PreviewItem.Alignment = xtpAlignmentWordBreak? If so height should be calculated right way. I remember there was an issue once regarding linebreaks in previewitem (not sure) so try to search forum for that.
Good luck
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |