Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - SOLVED: Editable Multiple Line Item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: Editable Multiple Line Item

 Post Reply Post Reply
Author
Message
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: Editable Multiple Line Item
    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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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.
 
 
 
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....
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post 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
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.063 seconds.