Class ProtectSpreadsheet

java.lang.Object
org.xlsx4j.samples.ProtectSpreadsheet

public class ProtectSpreadsheet extends Object
  • Constructor Details

    • ProtectSpreadsheet

      public ProtectSpreadsheet()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • addContent

      private static void addContent(WorksheetPart sheet)
    • createCell

      private static Cell createCell(String content)
      // Note: if you are trying to add characters, not a number, // the easiest approach is to use inline strings (as opposed to the shared string table). // See http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2011/11/22/screen-cast-write-simpler-spreadsheetml-when-generating-spreadsheets.aspx // and http://www.docx4java.org/forums/xlsx-java-f15/cells-with-character-values-t874.html