com.groupdocs.editor.options

Class SpreadsheetSaveOptions

  • All Implemented Interfaces:
    ISaveOptions


    public final class SpreadsheetSaveOptions
    extends Object
    implements ISaveOptions

    Allows to specify custom options for generating and saving Spreadsheet (Excel-compliant) documents

    • Constructor Detail

      • SpreadsheetSaveOptions

        public SpreadsheetSaveOptions(SpreadsheetFormats outputFormat)

        Creates a new instance of SpreadsheetSaveOptions with specified mandatory Spreadsheet output format, while all other parameters are default

        Parameters:
        outputFormat - Mandatory output format, in which the Spreadsheet document should be saved
    • Method Detail

      • getOutputFormat

        public final SpreadsheetFormats getOutputFormat()

        Allows to specify a Spreadsheet format, which will be used for saving the document

        Returns:
      • getPassword

        public final String getPassword()

        Allows to specify, modify, obtain, or remove a password, which will be used to encode the generated Spreadsheet document, if tis document format supports password protection. Specify NULL or empty string for removing (cleaning) the password.

        Returns:
      • getWorksheetProtection

        public final WorksheetProtection getWorksheetProtection()

        Allows to enable a worksheet protection for the output Spreadsheet document. By default is NULL - protection is not applied. Not all formats support a worksheet protection.

        Returns:
      • setOutputFormat

        public final void setOutputFormat(SpreadsheetFormats value)

        Allows to specify a Spreadsheet format, which will be used for saving the document

        Parameters:
        value -
      • setPassword

        public final void setPassword(String value)

        Allows to specify, modify, obtain, or remove a password, which will be used to encode the generated Spreadsheet document, if tis document format supports password protection. Specify NULL or empty string for removing (cleaning) the password.

        Parameters:
        value -
      • setWorksheetProtection

        public final void setWorksheetProtection(WorksheetProtection value)

        Allows to enable a worksheet protection for the output Spreadsheet document. By default is NULL - protection is not applied. Not all formats support a worksheet protection.

        Parameters:
        value -