Package xlsx4j.workingwithworkbook

Source Code of xlsx4j.workingwithworkbook.OpenSaveSpreadSheetXlsx4j

/**
* NOTICE: ORIGINAL FILE MODIFIED
*/

package xlsx4j.workingwithworkbook;

import org.docx4j.openpackaging.io.SaveToZipFile;
import org.docx4j.openpackaging.packages.OpcPackage;

public class OpenSaveSpreadSheetXlsx4j
{
  /**
   * @param args
   */
  public static void main(String[] args) throws Exception {

    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 java.io.File(inputfilepath));
   
    // Save it
   
    if (save) {   
      SaveToZipFile saver = new SaveToZipFile(pkg);
      saver.save(outputfilepath);
    }
  }
}
TOP

Related Classes of xlsx4j.workingwithworkbook.OpenSaveSpreadSheetXlsx4j

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.