+ Start a Discussion
tggagnetggagne 

How to paste from the clipboard into VF?

My client's application has a table that users would love to copy and paste part of an Excel spreadsheet into.

 

Is anyone doing that or something similar in VF?

sfdcfoxsfdcfox

In theory, you can use a Rich Text Area or a Text Area that users can copy-paste into. The former can be parsed with some XmlStreamReader functionality, while the latter can be easily manipulated with some tab-delimited processing code. The only real limitations here is your imagination (and governor limits). You can further stretch your Visualforce power by mixing in some JavaScript.