See ContributedPlugins

Overview#

WorksheetPlugin reads an Excel worksheet, stored as an attachment, and presents its content as a Table.

An Excel workbook typically contains several sheets; the WorksheetPlugin presents one of the sheets.

JSP Wiki Styles like %%table-filter can be applied to the output.

The plugin uses Apache POI, a library that offers access to Microsoft Office documents using the Java programming language.

While the WorksheetPlugin seems to work quite well, it is still new software.
Please report any errors/problems with the plugin in the Github issue tracker or on one of the mailing lists

Written by Christian Fröhler
Date 25-Mar-2016
Plugin Version 0.5 (for JSPWiki 2.10) ; 0.5-284 (for JSPWiki 2.8)
Wiki Versions 2.8+; 2.10+
Demo n/a
Source https://github.com/generatorr/WorksheetPlugin
Issues https://github.com/generatorr/WorksheetPlugin/issues
Plugin WorksheetPlugin-0.5.jar(info) for JSPWiki 2.10+
WorksheetPlugin-0.5-284.jar(info) for JSPWiki 2.8
Dependencies WorksheetPlugin-required-libs-0.5.zip(info)

Usage#

  • Download the WorksheetPlugin-required-libs-0.5.zip file, and extract into your <tomcat>/webapps/JSPWiki/WEB-INF/lib directory
  • Place the jar file into your <tomcatDir>/webapps/JSPWiki/WEB-INF/lib/ directory (see download links below)
  • Restart your tomcat
  • Attach an Excel document to your page and add the following JSPWiki source:
%%zebra-table
%%table-filter
[{WorksheetPlugin src='MyExcelExample.xlsx' sheetName='Sheet1' }]
/%
/%

Parameters#

Param Description Default
src Name of the attached excel document (mandatory)
sheetId ID of the worksheet within the excel document (first sheet has sheetId = 0) if both sheetName and sheetId are omitted, the first sheet in the workbook is taken
sheetName Name of the worksheet within the excel document if both sheetName and sheetId are there, sheetId wins

Properties#

n/a

Release History#

v0.5 (for JSPWiki 2.10+), v0.5-284 (for JSPWiki 2.8) (29-Mar-2016)
  • fixed two issues from github tracker
    • "%n" string when the plugin is inserted #1
    • dependencies.jar contains hidden __MACOSX folder #2
v0.4-alpha (25-Mar-2016)
  • for JSPWiki 2.10+.
  • Uses POI's "ToHtml" example class to output the html table; including .css formatting
v0.4-284alpha (25-Mar-2016)
  • for JSPWiki 2.8.2+.
  • Uses POI's "ToHtml" example class to output the html table; including .css formatting


Category.Plugins