copy-paste

copy-paste tables from word to excel

ε祈祈猫儿з 提交于 2019-12-01 08:05:29
I have a word document which is updated periodically. I can go into that Word document, select the contents of an entire table and copy, then go into an Excel spreadsheet and paste it. It's screwed up; however, I fix it as follows: sht.Cells.UnMerge sht.Cells.ColumnWidth = 14 sht.Cells.RowHeight = 14 sht.Cells.Font.Size = 10 This manual copy-paste works regardless of whether the table is has merged fields. Then I can start to manipulate it manually: parsing, checking, computations, etc. I can do this one table at a time, but it's tedious and of course error prone. I want to automate this. I

Formatted cliboard Java

 ̄綄美尐妖づ 提交于 2019-12-01 06:30:48
问题 I am having an issue trying to figure out how to retain formatting of text in a Java program when saving to the system clipboard. It does not work with things such as Microsoft's Wordpad or Lotus Symphony. On the contrary, if I create a formatted string in Word and copy it, then it works properly with all the trial cases I try to paste it into. I do not want to use any external sources such as org.eclipse.*. Here are some links that I have compiled that might help me get pointed in the proper

How to implement copy paste of a resource in REST?

断了今生、忘了曾经 提交于 2019-12-01 06:27:14
问题 How would you implement copy-paste support in a RESTful way? Let's say I have book store resource. And books in every store http://mydomain.com/rest/book-stores/1 http://mydomain.com/rest/book-stores/1/books/12 I need the client to be able to invoke copy paste of a book to another store. Implementing the following: PUT http://mydomain.com/rest/books/1/copy-paste seems very RPC like. Do you have any suggestion how can this operation be modeled in a RESTful way? 回答1: Copy = GET http://mydomain

Transpose column on one sheet to row on another, with linking

帅比萌擦擦* 提交于 2019-12-01 06:08:32
问题 I have a column of data in say A1:A10 in worksheet A. In worksheet B I have a range for data from A1:J1. I need the data from the column in worksheet A to be transposed into the data range in worksheet B. I can Paste Special and paste in the values but I need the information in worksheet A to update automatically that in worksheet B. Any help or advice is appreciated. 回答1: Please select A1:J1 in worksheet B and enter: =TRANSPOSE('worksheet A'!A1:A10) with Ctrl + Shift + Enter . 回答2: Copy this

Simple copy paste function in JavaScript

大兔子大兔子 提交于 2019-12-01 05:27:14
How I can make simple copy and paste for text in JavaScript? I would like to achieve that when I select some text in a textarea , then I can click on a button to copy it, then I can go to another page right click in another textarea and choose paste. Peeter Take a look at this library: https://github.com/zeroclipboard/zeroclipboard You cannot access the clipboard in JavaScript, meaning flash is more or less your only option. Anand Thangappan Use this function Copy() { if(window.clipboardData) { window.clipboardData.clearData(); window.clipboardData.setData("Text", document.getElementById(

How to implement the “Edit” menu with “Undo”, “Cut”, “Paste” and “Copy”?

旧街凉风 提交于 2019-12-01 03:44:29
Greetings, for one of my applications I'm trying to implement an "Edit" menu. This menu usually has the standard-entries Undo , Cut , Copy and Paste . This menu is not there by default, and users seem to expect it especially on Mac OS X. Is there a an easier way of implementing this, without doing so in every widget manually? Since most widgets have the copy/paste/undo mechanism already implemented via shortcuts, I'd like to provide a few simple menu actions that call them as well. The actions should call whatever widget has the focus first, then they should pass the events upwards the object

Paste text on Android using ADB?

孤街醉人 提交于 2019-12-01 03:15:16
This might seem like a duplicate question, but hear me out. I basically need to press "CTRL+V" inside of Android. I need to paste the current Android clipboard into the focused TextBox. So this: adb shell input text [text] won't do, as it requires me to enter the text myself. I just need to paste the current clipboard. Is that possible through ABD? I googled and googled and all I found was ways to set clipboard content and not actually just press the paste button. for the sake to ease development LaraChicharo Since API 24, KEYCODE_PASTE is available from the KeyEvent class, its constant is 279

How to programmatically copy/paste in windows phone? [duplicate]

橙三吉。 提交于 2019-12-01 02:56:32
Possible Duplicate: Can the new WP7 cut and paste functionality be used programatically? Is there a way to programmatically copy/paste text in windows phone. I want the user to click on a button that should automatically copy some text to the clipboard. The text resides on a TextBlock control (which may be hidden). The only workaround that I have thought of is to pop a dialog with the text filled in in a TextBlock (which natively supports copy paste). Thoughts? To set text : Clipboard.SetText("foo-bar") To check if clipboard contains text : Clipboard.ContainsText("foo-bar") No method to to get

Copy and paste the selected text to the clipboard using JavaScript

岁酱吖の 提交于 2019-12-01 01:57:51
I'm building a custom right-click menu for my system and I need to know how can I make a JavaScript function to copy the selected text, basically 100% like the original right-click menu does. I'm aware of the Flash work-arounds. I want to do this in JavaScript. Every answer I've seen so far is only a half-answer because none of them explains how to make a copy button for the selected text - all what they do is copy a pre-defined text or a text from a textbox. Modern Day Browsers block access to the clipboard. The user has to have the security setting correct. There are flash work-arounds , but

Copy & Paste custom tags in CKEDITOR 4.0

随声附和 提交于 2019-12-01 01:38:23
I have some custom tags inside my HTML. Like <mytag class="atr">text</mytag> . I want to copy this whole tag and paste the same. When i try to copy i am getting only the text, i know editor will support only valid html tags. Like copy and paste the bold,italic etc., Is there any other way to make my custom tag to copy?. Like using the DTD of CKEDITOR or htmlparser. Any suggestions.? Too long to be a comment. I'm not sure that this method will work - depends on how the copy&paste events work. I suggestion that you listen to the "paste" event and during the paste you convert the incoming