Copy Field to Clipboard

I have a computed field (that must remain computed) from which I would like to be able to copy the content (while in Edit mode) and to the clipboard for users to then use this information in another application.

Call uidoc.GotoField( “FirstDraft” )

Call uidoc.SelectAll

Call uidoc.Copy

…does not seem to work because it can’t execute the SelectAll.

Do I have any other options, keeping in mind that the field must be computed and the document must be in Edit?

I thought this would be a lot more simple, but apparently not.

Subject: copy

What I’ve done is to have another field, which is editable and hidden, which you can use to copy the data from

Your button to copy the field would have to set a flag to allow the hidden field to be visible, set the value of the editable field, copy the editable field then set the flag field value back so the editable field was hidden again

There’s a bit of flickering as the doc needs refreshing a couple of times, but it works fine

Subject: Exactly what I did

Thanks, Dan. That’s exactly what I ended up doing before I saw your response (two months after you posted it!). It does seem like a real roundabout way to do it, but the users love it and the flicker doesn’t seem to bother anyone.