SOLVED: Paste Validate |
Post Reply |
Author | |
ElvisM
Senior Member Joined: 12 October 2006 Location: Venezuela Status: Offline Points: 129 |
Post Options
Thanks(0)
Posted: 16 July 2008 at 3:08pm |
Hi, is possible validate the record meanwhile they're pasting (in the air)?
I'm using the PasteRecordFromText event, but I don't know how it works. Because I can't take control over the clipboard data and I can't decide which records are good and which records are bad...
Please, excuseme my bad english.
|
|
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits Language: Visual Basic 2015 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Elvis,
Please, upload sample project and maybe I can help you and in the meantime you can change the topic descriptions I asked you to and look at post: https://forum.codejock.com/forum_posts.asp?TID=11225
|
|
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.... |
|
ElvisM
Senior Member Joined: 12 October 2006 Location: Venezuela Status: Offline Points: 129 |
Post Options
Thanks(0)
|
Hi Aaron, I just have changed my signature.
Please, help me with my topic.
I need validate the text that the user is pasting in te reportcontrol, is this possible?
Elvis
|
|
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits Language: Visual Basic 2015 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Elvis,
It's either SOLVED: or it stays a question
I'm not sure if I understand your question. If you would paste some text while editing report item, you want to check the contents?
If you use the:
Private Sub wndReportControl_InplaceEditChanging(ByVal Row As XtremeReportControl.IReportRow, ByVal Column As XtremeReportControl.IReportColumn, ByVal Item As XtremeReportControl.IReportRecordItem, NewValue As String, Cancel As Boolean)
Me.Caption = NewValue End Sub NewValue is contents of report item string (updates after typing or in your case pasting text).
Hope this helps
|
|
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.... |
|
ElvisM
Senior Member Joined: 12 October 2006 Location: Venezuela Status: Offline Points: 129 |
Post Options
Thanks(0)
|
Hi Aaron, definitively, I don't know express you my issue.
Look...
I'm pasting a lot of records from Excel, but I wolud like to validate this records by the same time (if is possible) they're pasting in the reortcontrol, not after they were pasted.
For instance, if one of this records has an invalid date field, I would like to exclude this record "in the air" (before the pasting execute). If I have 10 lines in Excel, and one of them are invalid then in the reportcontrol only 9 records must be pasted.
I tried to work with the reportcontrol's BeforePasteFromText property but I don't know how it work...
The codejock's help is vwry simple and doesn't have enough examples.
Do you understand me?
Regards,
Elvis
|
|
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits Language: Visual Basic 2015 |
|
elchinote
Newbie Joined: 15 March 2013 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
hi how are you?
i'm searching how i can paste cells (data) from excel to the report control using VB6. I'm trying to copy/paste and transfer the data directly, without Excel References, only with clipboard. I've found this post. Can you show me how did you solve this issue?. regards
|
|
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 |