//Creating an Workbook object with an Excel file path
Workbook workbook = new Workbook("data/xlsx4j/pivot.xlsm");

//Saving the Excel file"data/xlsx4j/pivot-rtt-Aspose.xlsm");


String inputfilepath  = "data/xlsx4j/pivot.xlsm";

boolean save = true;
String outputfilepath = "data/xlsx4j/pivot-rtt-xlsx4j.xlsm";

// Open a document from the file system
// 1. Load the Package
OpcPackage pkg = OpcPackage.load(new;

// Save it

if (save) {     
    SaveToZipFile saver = new SaveToZipFile(pkg);;

Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited Aug 25, 2014 at 7:32 AM by shoaibkhan, version 1