Print Page | Close Window

Multiline item in report control

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=7312
Printed Date: 10 November 2024 at 6:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multiline item in report control
Posted By: jescar
Subject: Multiline item in report control
Date Posted: 06 June 2007 at 3:05am
Hi,
 
I am trying to make a multi line item in a report control. My code looks like this:

column = reportcontrol.Columns.Add(0, "Column1", 50, True)column.Editable = False

column = reportcontrol.Columns.Add(1, "Column2", 50, True)
column.Editable = False

column.EditOptions.EditControlStyle = XTPReportEditStyle.xtpEditStyleMultiline

reportcontrol.Records.DeleteAll()

record = reportcontrol.Records.Add()

cell = record.AddItem("Hello")

cell = record.AddItem("Hello" + Chr(13) + Chr(10) + "World")

reportcontrol.Populate()

I thought that setting the column editoption to multiline would give me multi line items in that column, but the text in column2 shown as Hello <2 squares> World. Obviously I am missing a point somewwhere but I can't seem to figure out where.

Any help appriciated.
Jesper Carstensen



Replies:
Posted By: Baldur
Date Posted: 30 October 2007 at 5:56am
Set the PaintManager.FixedRowHeight to false and the Column.Alignment to xtpAlignmentWordBreak



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