Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Multiline item in report control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multiline item in report control

 Post Reply Post Reply
Author
Message
jescar View Drop Down
Newbie
Newbie


Joined: 06 June 2007
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote jescar Quote  Post ReplyReply Direct Link To This Post Topic: Multiline item in report control
    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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2007 at 5:56am
Set the PaintManager.FixedRowHeight to false and the Column.Alignment to xtpAlignmentWordBreak
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.268 seconds.