With the above code snippet I am able to achieve data to be copied from table columns in Mozilla Firefox, once I copy multiple rows and columns and try to paste in Excel all the data comes in a single cell in an Excel file from Firefox 2. But in IE its working fine.
Kindly suggest.
By copy data - do you mean just selection a text and pressing ctrl-c ?
If you are using native selection, component can’t affect it in any way, and result of selection will be based on browser ( IE handles html copy-paste in special way , which allows to recognize cell during paste in excel )
There is a separate operation for block copy-paste operations.