Print Page | Close Window

SOLVED: Editable Multiple Line Item

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=11420
Printed Date: 20 July 2025 at 7:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: Editable Multiple Line Item
Posted By: markmark
Subject: SOLVED: Editable Multiple Line Item
Date Posted: 13 July 2008 at 6:37am

Hi

 

I need to display text in an Item with multiple lines.

and allow the user to edit it.

But I can’t find a way to display more than one line.

 

If I set the report to wndReportControl.PreviewMode = True

And then add text via Record.PreviewText

I can see text under the record, and this will display more than one line, but

it appears read only

 

Is the any way around any of these problems?

 

Thanks again

 

MArk

-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0



Replies:
Posted By: Aaron
Date Posted: 13 July 2008 at 7:11am
Hi,
 
Try this:
  • Set Record = wndReportControl.Records.Add()
    Set Recorditem = Record.AddItem("MultilineItem")
          Recorditem.CreateEditOptions
          Recorditem.EditOptions.EditControlStyle = xtpEditStyleMultiline
  • Set wndReportControl.PaintManager.FixRowHeight = false
  • Set wndReportControl.SetCustomDraw xtpCustomMeasureRow
  • Use: Private Sub wndReportControl_MeasureRow(ByVal Row As XtremeReportControl.IReportRow, ByVal hDC As stdole.OLE_HANDLE, ByVal Width As Long, Height As Long)
         Height = 100 'to adjust the height of row for entering more than one line of chars
    End Sub
  • Use CTRL-ENTER to go to next line

 

 



-------------
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: markmark
Date Posted: 13 July 2008 at 8:49am

Hi  Aaron

 

I’m nearly these.

If an item has more than one line the char returns are displayed as two squares

But when you click into the item it reformats the text correctly and put the new lines in, click away and it resets to one line and the returns are displayed as squares.

Any ideas

 

MArk

-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0


Posted By: Aaron
Date Posted: 13 July 2008 at 10:04am
Hi,
 
Here's a test project, you can check it yourself. One thing I noticed as well, the grouprow is showing squares as you said. I think this can be solved as well. I'll away for a few days so better to ask someone from the support team. I will try to solve this in a few hours, if I got the time.
 
https://forum.codejock.com/uploads/20080713_095721_TestMultiLine.zip - uploads/20080713_095721_TestMultiLine.zip  
 
 


-------------
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: Aaron
Date Posted: 13 July 2008 at 10:15am
Hi,
 
The project is with V12.0.1 ReportControl, I just thought of it: you use V11.1.3 but you can copy the code into your own test project. I don't know if all properties are the same as in V11.1.3 but you will find out if you run it
 
 


-------------
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: markmark
Date Posted: 14 July 2008 at 3:11am

Hi Aaron.

Thanks you for the example project.

It seems that running with version 11.1.3 is the problem.

If I upgrade to 12.0.1 then it all works as you said.

 

Look like I will have to upgrade for my next release.

I’ve been putting that off, because I didn’t want all our client pc to have to run a new set-up, but looks like I will have too.

 

Thanks again for your support.

 

MArk

-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0



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