?
Solved

Copy / Paste to /from a datawindow

Posted on 2004-04-01
3
Medium Priority
?
1,846 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Accepted Solution

by:
Vikas_Dixit earned 500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

762 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