Home » questions » Why the same web page paste to word and notepad has the different behavior. I maen that to paste int

Why the same web page paste to word and notepad has the different behavior. I maen that to paste int

2006-08-11 20:42:46, Category: Programming & Design
Why the same web page paste to word and notepad has the different behavior. I maen that to paste into notepad only the textr content exist ,but for word including the text style and other information . 1) Can anyone show me what is the real content of "copy-paste" 2) the Mechanism of "Clip board"

Answers

  1. gene_frequency

    On 2006-08-11 20:52:21


    You're right...the behavior is different for different apps. Another example is that you can copy and paste an image from a web page into MS Word. And nothing will be pasted into Notepad from the same Copied data. That's by design. Clipboard has All the information at the time of Copy. But the application determines what will be allowed at Paste time. It's important that the application be programmed to selectively deal with the global memory in Clipboard. Notepad can't display an image. Windows Paint can. So the individual applications are programmed to be picky about Clipboard memory by design/intentionally.
  2. jack573

    On 2006-08-15 09:21:35


    1) The real content of 'copy-paste' would be similar to what you get in word. 2) The clipboard holds the information when you copy something, so you can paste the information. The reason notepad only displays the text is that notepad is only a text editor. Whereas word is a word processor that can do html. This is why you see more information in word, as it can handle those formats. Have a look at the 'saveas' menu item in both notepad and word. In notepad you can only save as a 'text document .txt' file, whereas in word, you have a lot more options including 'word document', 'text-only', 'MSDOS text with line breaks', etc. The above answerer (gene_frequency [ http://answers.yahoo.com/my/profile;_ylt=AjXlzC6_cPH9yyDRY5bac1gezKIX?show=a5dd8a746f6ec814bd3925a3919f19e9aa ]) is correct about different programs accepting different types like Windows Photo Editor/Paint.