Multiline item in report control |
Post Reply |
Author | |
jescar
Newbie Joined: 06 June 2007 Status: Offline Points: 1 |
Post Options
Thanks(0)
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 = Falsecolumn = 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 |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
Set the PaintManager.FixedRowHeight to false and the Column.Alignment to xtpAlignmentWordBreak
|
|
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 |