<cfscript> Workbook = Spreadsheetnew("Workbook"); SpreadSheetSetCellValue(WorkBook, "4D", 1, 1); // displayed 4 SpreadSheetSetCellValue(WorkBook, "4C", 1, 2); // displayed 4C SpreadSheetSetCellValue(WorkBook, "4E", 1, 3); // displayed 4E SpreadSheetSetCellValue(WorkBook, "5C", 1, 4); // displayed 5C SpreadSheetSetCellValue(WorkBook, "5D", 1, 5); // displayed 5 SpreadSheetSetCellValue(WorkBook, "4d", 1, 6); // displayed 4 MYfile = "d:\dw\dwtest\dan\abc.xls"; </cfscript> <cfspreadsheet action="write" filename="#MYFile#" name="Workbook" sheet=1 overwrite=true>
Configuring ColdFusion: Version 9,0,1,274733
Publishing company
Windows 2003 operating system
OS Version 5.2
Excel version Office 2010 Version 14.0.6129.5000 (32 bit).
If you run this code on your system, will you get the same results?
More importantly, if you get the same results, do you know what to do about it?
Edit
Checking for other problematic letters:
RowNumber = 1; for (i = 65; i <= 90; i++){ SpreadSheetSetCellValue(WorkBook, chr(i), RowNumber, 1); SpreadSheetSetCellValue(WorkBook, "4#chr(i)#", RowNumber, 2); RowNumber ++; }
Line 4F also displays only the number.