diff options
| author | Randy Morgan <[email protected]> | 2012-07-14 13:25:52 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-07-14 13:25:52 +0900 |
| commit | bcebd1714a5224a36e331a47880ae94dbc32054c (patch) | |
| tree | f6283a0beeb98c42c8fe96d0b4e4e3e071ddf1cc /lib/axlsx/util/constants.rb | |
| parent | b24833c496e84177ef1f20ea04abdfa3bc26d51c (diff) | |
| download | caxlsx-bcebd1714a5224a36e331a47880ae94dbc32054c.tar.gz caxlsx-bcebd1714a5224a36e331a47880ae94dbc32054c.zip | |
Additional validations for excel sheet name and example updates
Diffstat (limited to 'lib/axlsx/util/constants.rb')
| -rw-r--r-- | lib/axlsx/util/constants.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/axlsx/util/constants.rb b/lib/axlsx/util/constants.rb index 0a2b5499..e5fb08f1 100644 --- a/lib/axlsx/util/constants.rb +++ b/lib/axlsx/util/constants.rb @@ -249,6 +249,10 @@ module Axlsx # error message for sheets that use a name which is longer than 31 bytes ERR_SHEET_NAME_TOO_LONG = "Your worksheet name '%s' is too long. Worksheet names must be 31 characters (bytes) or less" + + # error message for sheets that use a name which includes a colon + + ERR_SHEET_NAME_COLON_FORBIDDEN = "Your worksheet name '%s' contains a colon, which is not allowed by MS Excel and will cause repair warnings. Please change the name of your sheet." # error message for duplicate sheet names ERR_DUPLICATE_SHEET_NAME = "There is already a worksheet in this workbook named '%s'. Please use a unique name" |
