| 
					
				 | 
			
			
				@@ -327,22 +327,22 @@ function writeSheet(pageData, sheetData, sharedStrList, stylesObj){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         borderLineWidths.push(border[JV.PROP_TOP][JV.PROP_LINE_WEIGHT]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         borderLineWidths.push(border[JV.PROP_BOTTOM][JV.PROP_LINE_WEIGHT]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (sheetBorder[JV.PROP_LEFT] && sheetBorder[JV.PROP_LEFT][JV.PROP_LINE_WEIGHT]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            sheetBorderLineWidths.push(parseInt(border[JV.PROP_LEFT][JV.PROP_LINE_WEIGHT])); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            sheetBorderLineWidths.push(parseInt(sheetBorder[JV.PROP_LEFT][JV.PROP_LINE_WEIGHT])); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             sheetBorderLineWidths.push(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (sheetBorder[JV.PROP_RIGHT] && sheetBorder[JV.PROP_RIGHT][JV.PROP_LINE_WEIGHT]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            sheetBorderLineWidths.push(parseInt(border[JV.PROP_RIGHT][JV.PROP_LINE_WEIGHT])); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            sheetBorderLineWidths.push(parseInt(sheetBorder[JV.PROP_RIGHT][JV.PROP_LINE_WEIGHT])); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             sheetBorderLineWidths.push(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (sheetBorder[JV.PROP_TOP] && sheetBorder[JV.PROP_TOP][JV.PROP_LINE_WEIGHT]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            sheetBorderLineWidths.push(parseInt(border[JV.PROP_TOP][JV.PROP_LINE_WEIGHT])); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            sheetBorderLineWidths.push(parseInt(sheetBorder[JV.PROP_TOP][JV.PROP_LINE_WEIGHT])); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             sheetBorderLineWidths.push(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (sheetBorder[JV.PROP_BOTTOM] && sheetBorder[JV.PROP_BOTTOM][JV.PROP_LINE_WEIGHT]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            sheetBorderLineWidths.push(parseInt(border[JV.PROP_BOTTOM][JV.PROP_LINE_WEIGHT])); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            sheetBorderLineWidths.push(parseInt(sheetBorder[JV.PROP_BOTTOM][JV.PROP_LINE_WEIGHT])); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             sheetBorderLineWidths.push(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -437,8 +437,8 @@ function writeSheet(pageData, sheetData, sharedStrList, stylesObj){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //remark: 1 excel width = 2.117 mm 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         rst.push('<cols>'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var w = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        for (var i = 1; i < xPos.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            w = 1.0 * (xPos[i] - xPos[i - 1]) / DPI * 25.4 / 2.117; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for (var i = 1; i < xPos.length - 1; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            w = 1.0 * (xPos[i + 1] - xPos[i]) / DPI * 25.4 / 2.117; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             w = Math.round(w * 1000) / 1000; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             rst.push('<col min="' + i +'" max="' + i +'" width="' + w + '" customWidth="1"/>'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -465,7 +465,7 @@ function writeSheet(pageData, sheetData, sharedStrList, stylesObj){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private_setSheetData = function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //remark: 1 excel height = 0.3612 mm 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         rst.push('<sheetData>'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var spanX = xPos.length - 1, cellIdx = 0, h = 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var spanX = xPos.length - 2, cellIdx = 0, h = 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             hasMoreCols = true, nextColIdx = -1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             nextRowIdx = yPos.indexOf(sheetData.cells[cellIdx][JV.PROP_AREA][JV.PROP_TOP]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (var i = 1; i < yPos.length - 1; i++) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -531,7 +531,7 @@ function writeSheet(pageData, sheetData, sharedStrList, stylesObj){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private_pre_analyze_pos(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     rst.push(dftHeadXml + '\r\n'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     rst.push('<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    var colStr = private_getCellIdxStr(xPos.length - 2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    var colStr = private_getCellIdxStr(xPos.length - 3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     rst.push('<dimension ref="A1:' + colStr + '' + yPos.length + '"/>'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     rst.push('<sheetViews><sheetView tabSelected="1" workbookViewId="0">'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     rst.push('<selection sqref="A1:' + colStr + '1"/>'); 
			 |