Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - [SOLVED] BeforePasteFromText event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] BeforePasteFromText event

 Post Reply Post Reply
Author
Message
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 Topic: [SOLVED] BeforePasteFromText event
    Posted: 06 August 2008 at 8:17am
Hi,
 
When using
 
Private Sub wndReportControl_BeforePasteFromText(ByVal Record As XtremeReportControl.IReportRecord, ByVal strText As String, CancelOperation As Variant)
event, I would like to check the contents of pasted text but it seems that strText only returns first char of every "row". Records will be pasted in RC, that seems OK... But I have to check the contents before pasting them.
 
I would think the strText holds the entire string (which is pasted) but this isn't the case. Each line in the copied string (items seperated with tabs) will fire the event. But only first char is returned in strText
 
Would someone be so kind and explain it to me.
 
Thanks
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
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2008 at 1:40pm
I can't even get the BeforePasteFromText event to fire...Do you have a sample that fires the event?
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2008 at 1:58pm
Okay, I got it to fire, and can confirm the bug (first char of every row only). I also tried to use Clipboard.GetText to see if it was possible to get the full clipboard text (as a workaround), but apparently the Clipboard is locked during the BeforePasteFromText event.
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
AndreiM View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 18 August 2007
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndreiM Quote  Post ReplyReply Direct Link To This Post Posted: 09 August 2008 at 5:14am
This bug will be fixed in 12.0.2.
 
Use Unicode version of the ReportControl (it works fine with this). 
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.141 seconds.