Copy/paste Excel data to a page and retain formatting
-
I am developing (on localhost) a new site that has to include pages containing excerpts from Excel sheets. Not the whole Excel file or a whole sheet, just a portion of a sheet. I’m converting an old site created and maintained with MS FrontPage 2003 (OK, stop giggling at the back there) into a WordPress equivalent and under FP it was easy to copy/paste tables of data from an Excel sheet directly to an FP page and publish it. They always came out as they were formatted on the Excel sheet. The HTML is rubbish, but the job is done.
Can’t do this in WordPress. The formatting is always off and frequently just missing as either WP or my Theme (Weaver Xtreme) strips it out. I know tables are deprecated these days but sometimes it’s the only way to present, er, tabular data such as what comes from Excel. I’m not talking fancy charts or anything – just groups of fomatted cells that comprise a single tabular report. For some reason it’s always the borders that get stripped out and column widths are knocked about a lot too.
I’ve searched and searched for something that will allow/facilitate a copy/paste directly from Excel to a WP page and keep the original formatting. I found some plugins that stage the conversion and the output looks good (e.g. Docxpresso) but these all import whole files and don’t go anywhere near copy/paste. I don’t particularly want to have to go the trouble of extracting my little tables into a new .xlsx or .csv or .ods file, uploading them and displaying them with a shortode. Some will have to be regularly updated/refreshed (say weekly) so a simple and easily repeatable solution would be welcome.
If this can be done in a very straightforward manner with a 15-year-old out-of-date site construction tool why is it so difficult with a modern one? Is this progress?
Am I asking too much? I can’t be the first person in the world to want to do this and I’ve generally found that if I want to do something extra or non-standard in WordPress then somebody somewhere has thought of it already and developed a solution. It’s not leaping out at me with this problem though, but it does seem a pretty simple thing to want to do.
Any advice? Is there a neat little plugin I haven’t spotted that does this?
The page I need help with: [log in to see the link]
- The topic ‘Copy/paste Excel data to a page and retain formatting’ is closed to new replies.