Print Page | Close Window

Need help with preview text

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=19301
Printed Date: 05 October 2024 at 5:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Need help with preview text
Posted By: Axegrinder
Subject: Need help with preview text
Date 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?



Replies:
Posted By: Aaron
Date Posted: 13 December 2011 at 5:04pm
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....


Posted By: Axegrinder
Date Posted: 13 December 2011 at 5:33pm
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.


Posted By: Aaron
Date Posted: 14 December 2011 at 1:02pm
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....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net