Solved

Copy / Paste to /from a datawindow

Posted on 2004-04-01
3
1,671 Views
Last Modified: 2013-12-26
Hi

I have some functionality I'm trying to get to work. I allow a user to copy rows from a datawindow into the clipboard. Behind the scenes I copy the selected rows to a datastore.

The problem is if they then paste the values into Excel , change some values and try to paste the rows back into the visible datawindow, there is no change. Behind the scenes I try to do a Paste() into the datastore then row by row put them back into the visible datawindow but nothing seems to happen. The datawindow object is external.

any ideas would be appreciated.

cheers
0
Comment
Question by:maran_software
3 Comments
 
LVL 8

Accepted Solution

by:
Vikas_Dixit earned 125 total points
ID: 10733767
Try the following ( you may need to customize a bit) :

string ls_Data

ls_Data = Clipboard()

dw_1.ImportString(ls_Emp_Data)


Or use : dw_1.ImportClipboard().. see the variations that accept row/column range.

Also can you debug and see if your code is being executed at all ??
--VIkas
0
 
LVL 15

Expert Comment

by:namasi_navaretnam
ID: 10737088
Yes. You need to debug further. Check the retrun codes from ImportString, ImportClipboard functions. The data needs to be tab-delimited. Also post your code.
0
 

Author Comment

by:maran_software
ID: 10739075
Thanks your suggestion worked well! Thanks again.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to become programmer? 12 33
Visual Studio 2010 and wwwroot level webconfig file 1 49
Object Data Source 4 124
Java eclipse error 2 66
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now