Clipboard

  • Thread starter Thread starter Gulliver
  • Start date Start date
G

Gulliver

Anyone have any ideas how to copy a filename to the clipboard? I am building
a reporting application and want to do the following:

1. Select blocks of text from rtf document #1 and copy this text to the
clipboard (easy to do).
2. Paste the text into a blank document #2 (easy to do).

This is where I'm stuck:
3. Automatically place the filename, page number and/or line number of the
source block of text just above where I pasted the text into the blank
document.

Any gurus out there with some creative ideas?

thanks.

Gull.
 
Hi Gull,

How are you doing 1. and 2. ?

If you're talking about the user selecting the text in some application
and then copying it manually to the clipboard, then you've got no chance. The
context is not copied to the clipboard, nor can you access it from your own
application.

If you're talking about the same in a RichTextBox within your own app,
then you can look at tracking what text is selected and determining when the
clipboard is used.

Regards,
Fergus
 
Back
Top