[SOLVED] BeforePasteFromText event |
Post Reply |
Author | |
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
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.... |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
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 |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
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 |
|
AndreiM
Moderator Group Joined: 18 August 2007 Status: Offline Points: 132 |
Post Options
Thanks(0)
|
This bug will be fixed in 12.0.2.
Use Unicode version of the ReportControl (it works fine with this).
|
|
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 |