Hi all,
Working extensively with jPOI has created two issues which I found to be hard to find workarounds for. At least when only using jPOI.
With MS Excel we can create true templates by using xlt and xltx file extensions. Whenever we open a xlt/xltx it creates a copy of the workbook. But jPOI cannot work with these file extensions. The workaround is to use a xls/xlsx file as a "template" and save the workbook under a different name.
I prefer to work with true templates so the question is; is it possible at all?
Another issue is protecting workbooks and worksheets. When creating Excel reports it's common to protect the worksheets' reports.
Looking into POI it seems that it's possible via JavaFX. Can anyone show me an example on how to do it in code?
Later on I will publish a tutorial about creating professional Excel Reports. The two issues are part of the tutorial.
Thanks in advance and all the best,
Dennis
Working extensively with jPOI has created two issues which I found to be hard to find workarounds for. At least when only using jPOI.
With MS Excel we can create true templates by using xlt and xltx file extensions. Whenever we open a xlt/xltx it creates a copy of the workbook. But jPOI cannot work with these file extensions. The workaround is to use a xls/xlsx file as a "template" and save the workbook under a different name.
I prefer to work with true templates so the question is; is it possible at all?
Another issue is protecting workbooks and worksheets. When creating Excel reports it's common to protect the worksheets' reports.
Looking into POI it seems that it's possible via JavaFX. Can anyone show me an example on how to do it in code?
Later on I will publish a tutorial about creating professional Excel Reports. The two issues are part of the tutorial.
Thanks in advance and all the best,
Dennis