예제 #1
0
        /**
         * Constructor.  Replaces some of the characters in the java number
         * format string with the appropriate excel format characters
         *
         * @param fmt the number format
         */
        protected NumberFormatRecord(string fmt, NonValidatingFormat dummy)
            : base()
        {
            // Do the replacements in the format string
            string fs = fmt;

            fs = replace(fs, "E0", "E+0");

            setFormatString(fs);
        }
        /**
         * Constructor.  Replaces some of the characters in the java number
         * format string with the appropriate excel format characters
         *
         * @param fmt the number format
         */
        protected NumberFormatRecord(string fmt, NonValidatingFormat dummy)
            : base()
        {
            // Do the replacements in the format string
            string fs = fmt;

            fs = replace(fs, "E0", "E+0");

            setFormatString(fs);
        }
예제 #3
0
 /**
  * Constructor, taking in the non-Java compliant number format.  This
  * may be used for currencies and more complex custom formats, which
  * will not be subject to the standard validation rules.
  * As there is no validation, there is a resultant risk that the
  * generated Excel file will be corrupt
  *
  * USE THIS CONSTRUCTOR ONLY IF YOU ARE CERTAIN THAT THE NUMBER FORMAT
  * YOU ARE USING IS EXCEL COMPLIANT
  *
  * @param format the format string
  * @param dummy dummy parameter
  */
 public NumberFormat(string format, NonValidatingFormat dummy)
     : base(format, dummy)
 {
 }
예제 #4
0
 /**
  * Constructor, taking in the non-Java compliant number format.  This
  * may be used for currencies and more complex custom formats, which
  * will not be subject to the standard validation rules.
  * As there is no validation, there is a resultant risk that the
  * generated Excel file will be corrupt
  *
  * USE THIS CONSTRUCTOR ONLY IF YOU ARE CERTAIN THAT THE NUMBER FORMAT
  * YOU ARE USING IS EXCEL COMPLIANT
  *
  * @param format the format string
  * @param dummy dummy parameter
  */
 public NumberFormat(string format, NonValidatingFormat dummy)
     : base(format, dummy)
 {
 }