Small Bug with SpreadSheetCreateSheet
I was running some comparisons with CF9's spreadsheet functions and noticed a small bug with SpreadSheetCreateSheet(). When you omit the sheet name argument, CF automatically generates the sheet's name for you, using the standard naming convention Sheet1, Sheet2, etcetera). But apparently CF, or more accurately POI, does not verify the new name is not already in use.
<cfset sheet = SpreadSheetNew() /> <cfset SpreadSheetCreateSheet(sheet) /> <cfset info = SpreadSheetInfo(sheet)/> <cfdump var="#info#" label="Duplicate sheet names" />
Now I suspect most people prefer to provide their own (more descriptive) sheet names, in which case the issue does not apply. But in case you do choose to use this feature, just be aware of this "gotcha".
...Read More