How to read client clipboard data and send to server side?

0
0

Hello,

In my application, I need my users to copy data from Excel, open a wisej form, click a button called “Paste” on the form and the clipboard data send to app for processing at serverside.

I searched in this forum and read all the ticket related to clipboard. but could not find any simple example of how to make it done.

The Documentation Clipboard – Wisej API show all the functions related to the clipboard. but not mentions about the context where we can call them.

As i guessed , it should be called from a client side with a java scripts, but have no clue which java script function to call, how to call it from button click event. …

Please help with a simple example how to make this. Thank you.

  • You must to post comments
0
0

Hi,

How do we use this extension on Wisej 2.2 ?

  • You must to post comments
0
0

Hi Tung,

We had recently an extension for JS Client Clipboard Wisej.Ext.ClientClipboard.(Add this project reference to sample)

Go to https://github.com/iceteagroup/wisej-extensions for build extension

Use like that:

var data = await ClientClipboard.ReadTextAsync();

Take a look to sample in attachment.

Happy coding,

Kevin (ITG)

  • Tung Ngo
    Hello Kevin, The latest code at https://github.com/iceteagroup/wisej-extensions/tree/2.5/Wisej.Ext.ClientClipboard seems not compiled. Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name ‘ClientClipboardEventHandler’ could not be found (are you missing a using directive or an assembly reference?) Wisej.Ext.ClientClipboard C:\Users\tung\source\repos\wisej-extensions25\Wisej.Ext.ClientClipboard\ClientClipboard.cs 52 Active Severity Code Description Project File Line Suppression State Error CS0103 The name ‘ClientClipboardChangeType’ does not exist in the current context Wisej.Ext.ClientClipboard C:\Users\tung\source\repos\wisej-extensions25\Wisej.Ext.ClientClipboard\ClientClipboard.cs 59 Active
  • Levie (ITG)
    Thanks Tung, please pull and try again. Let me know if it still doesn’t work!
  • Tung Ngo
    Hi, it works like a charm now. Thanks for the extension and for your support. By the way Wisej.ext.ClientFileSystem is also another wow extension. Browsing and reading a file from client machine is like a breeze now.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.