Print Page | Close Window

[SOLVED] BeforePasteFromText event

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=11740
Printed Date: 01 May 2024 at 8:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] BeforePasteFromText event
Posted By: Aaron
Subject: [SOLVED] BeforePasteFromText event
Date 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....



Replies:
Posted By: jpbro
Date 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



Posted By: jpbro
Date 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



Posted By: AndreiM
Date 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). 


-------------
Regards,
Andrei Melnik



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