comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Workbench - copy and past to Word
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Workbench - copy and past to Word [message #62682] Thu, 25 September 2008 13:22
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
> I recently went through the same exercise for another non-IDL copy-and-
> paste to word problem. I don't think it is an IDL or workbench issue,
> but a windows/word thing. You can configure word to always match the
> source or destination formatting when you paste. In word 2007, it is
> in the word options->advanced settings dialog. Since 95% of the time
> I just want to copy the text, not the formatting, I was so glad to
> find this...
>
> Mike

Thanks Mike...
if others wonder, in Word 2003, I had to be a bit more tricky:
in normal.dot, create a macro with the following procedure:

Sub EditPaste_noFormat()
On Error Resume Next
Selection.PasteSpecial DataType:=wdPasteText
End Sub

Then put an icon on the toolbar that links to it, and assign the key
ALT+V (unassigned) to it... so you are not loosing the formated paste!

Alternatively, if you call the function "EditPaste()", then doing
"paste" or "CRTL+V" will paste without formating... and you must go
through "special paste" to keep the formating!

Jean
Re: Workbench - copy and past to Word [message #62688 is a reply to message #62682] Thu, 25 September 2008 08:03 Go to previous message
Mike[2] is currently offline  Mike[2]
Messages: 99
Registered: December 2005
Member
On Sep 23, 1:21 pm, Jean H <jghas...@DELTHIS.ucalgary.ANDTHIS.ca>
wrote:
> RussellGrew wrote:
>
> Russell,
> Thanks for tips...  though both methods require two extra actions... I
> am really looking for a way to configure the workbench so that the
> formating is not copied in IDL..

I recently went through the same exercise for another non-IDL copy-and-
paste to word problem. I don't think it is an IDL or workbench issue,
but a windows/word thing. You can configure word to always match the
source or destination formatting when you paste. In word 2007, it is
in the word options->advanced settings dialog. Since 95% of the time
I just want to copy the text, not the formatting, I was so glad to
find this...

Mike
Re: Workbench - copy and past to Word [message #62706 is a reply to message #62688] Tue, 23 September 2008 10:55 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jean H writes:

> Thanks for tips... though both methods require two extra actions... I
> am really looking for a way to configure the workbench so that the
> formating is not copied in IDL..

The real problem with infinite choice is that it raises
your expectations to unrealistic levels. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Workbench - copy and past to Word [message #62707 is a reply to message #62706] Tue, 23 September 2008 10:21 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
RussellGrew wrote:
> Hi Jean,
>
> When you paste into word there should be an option along the lines of
> accepting the word document formatting or the text source formatting.
> I can't reproduce the problem here at the moment as I am using a
> different OS.
>
> Alternatively, paste the text into notepad (or your favorite text
> editor) and then into word. The problem stems for the copy command in
> IDL taking the text formatting (font, color etc) into consideration.
>
> Cheers.

Russell,
Thanks for tips... though both methods require two extra actions... I
am really looking for a way to configure the workbench so that the
formating is not copied in IDL..

Jean
Re: Workbench - copy and past to Word [message #62716 is a reply to message #62707] Mon, 22 September 2008 16:34 Go to previous message
russell.grew is currently offline  russell.grew
Messages: 74
Registered: February 2005
Member
Hi Jean,

When you paste into word there should be an option along the lines of
accepting the word document formatting or the text source formatting.
I can't reproduce the problem here at the moment as I am using a
different OS.

Alternatively, paste the text into notepad (or your favorite text
editor) and then into word. The problem stems for the copy command in
IDL taking the text formatting (font, color etc) into consideration.

Cheers.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLWAVE "Expanding path..."
Next Topic: IDLgrText: x/yrange of other than first string?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:22:38 PDT 2025

Total time taken to generate the page: 0.00636 seconds