Excel 2007 Structure Viewer fix

This is a recipe for a bug fix, applicable to (PP/SES 7.0.x and earlier). If you have SES 7.1.x, the bug has already been fixed.

In Excel 2007, the Excel Structure Viewer component causes molecular images to be placed irregularly on a worksheet.

1. Please backup the server file apps\scitegic\core\bin\scripts\SciTegicExcelSVScript.dat

2. In the original, replace lines 196 and 197 in apps\scitegic\core\bin\scripts\SciTegicExcelSVScript.dat with:

' Add the picture. Work around a bug in Excel 2007.

worksheet.Pictures.Insert(fileName).Select
xl.Selection.Name = CStr(iRow) & "xx" & CStr(iProperties) 'Has to be unique
With worksheet
.Pictures(xl.Selection.Name).Left = xl.Cells(iRow, iProperties).Left
.Pictures(xl.Selection.Name).Top = xl.Cells(iRow, iProperties).Top
End With

3. There is no need to restart the server.