How to disable copy to clipboard in FixedPageViewer?

Jun 25, 2012 at 5:45 AM

I set TextSelection value to true for Xps Document Search.

And I want to prevent text copy to clipboard because of security document.

Let me know how to disable copy to clipboard at xps document.

please! 

Coordinator
Jun 25, 2012 at 11:36 AM

You can remove the CopyToClipboard option from your context menu, but copying using CTRL-C cannot be disabled when TextSelection.IsEnabled is true. The upcoming update of Document Toolkit will feature a new TextSelection.IsCopyAllowed property, available soon.

- Koen 

Jun 26, 2012 at 5:50 AM

So, CTRL key, can prevent key press?

Coordinator
Jun 26, 2012 at 10:47 AM

Document Toolkit v2.5.2 released yesterday (June 25) has a property TextSelection.IsCopyAllowed, setting it to false prevents copying to clipboard. See also this snippet on its usage

<doc:DocumentViewer>
  <doc:DocumentViewer.Selection>
    <doc:TextSelection IsEnabled="True" IsCopyAllowed="False" />
  </doc:DocumentViewer.Selection>
</doc:DocumentViewer>

- Koen