If you use IE it copies and pastes quite nicely with formatting and everything (in either direction)
If you want to automate it send the innerHTML to the server with GM_xmlhttpRequest, parse the table text using Xpath or just explode and trim the rows and columns, then implode them into a CSV format which would work in excel. its alternatively possible to do it all in a userscript and have the raw CSV data pop up in a new window that you can file save as file.csv Neat idea for a script that would turn any table into a CSV format... I would almost develop it if we are sure it doesn't exist.... Why i suggested IE copy paste was if you want colors and pretty stuff like that would be a lot more complex to support in GM alone. CSV is just plain text On Jun 17, 1:06 pm, Bal <[email protected]> wrote: > Hi, > > I have a requirement wherein I need to extract data from a table into > a .xls file from browser. If anyone has any related script/pointer > please let me know. > > Thanks and Regards, > Bal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en -~----------~----~----~----~------~----~------~--~---
