Title:
CFSPREADSHEET.spreadSheetFormatRow not re-setting bold and italic to no/false
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / ext-user (Viny Nigam)
Created: 04/05/2012
Components: Document Management, Office Integration
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: 282234 / CF11 Update5,CF10 Update16
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Mac 10 All,Win XP All
Vote Count: 0
Problem:
spreadSheetFormatRow not re-setting bold and italic to no/false
Method:
See notes
SingleSheet.xls attached
<cfspreadsheet action="read" src="#dirname#SingleSheet.xls" name="excelVar" >
<cfset format= StructNew()>
<cfset format.font="courier">
<cfset format.size="20">
<cfset format.color="BLUE">
<cfset format.bold="true">
<cfset format.italic="true">
<cfset format.underline="true">
<cfset format.strikeout ="true">
<cfset spreadsheetFormatRow(excelVar,format,"1")>
<cfset spreadsheetFormatRow(excelVar,format,"3")>
<cfset spreadsheetFormatColumn(excelVar,format,1)>
<cfset spreadsheetFormatCell(excelVar,format,2,2)>
<!----- Added these steps as a part of fix of bug 72499------>
<cfset format.bold="false">
<cfset format.italic="no">
<cfset format.underline="no">
<cfset format.strikeout ="false">
<cfset spreadsheetFormatRow(excelVar,format,"3")>
<cfspreadsheet action="write" filename="#dirname#SingleSheet1.xls" name="excelVar" overwrite="true" >
Result:
Sheet=1, row=3 is bold and underlined
Expected:
Verify that at Sheet=1, row=3 is having following formatting:
font ="courier"
color=Blue
Bold="false"
Italic="false"
underlined="false"
Strikethrough="false"
Workaround:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3158250
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: