https://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xssf/streaming/examples/SavePasswordProtectedXlsx.java?view=markup
This sample uses a custom SXSSF workbook but you could use a plain XSSFWorkbook instead. Basically you save the XSSFWorkbook to a file using write(OutputStream) and the save method in the class above reads that file in and saves a new file that is password protected. -- Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@poi.apache.org For additional commands, e-mail: user-h...@poi.apache.org