Показать сообщение отдельно
Старый 08.11.2007, 00:32   #4  
Gustav is offline
Gustav
Moderator
Аватар для Gustav
SAP
Лучший по профессии 2009
 
1,858 / 1152 (42) ++++++++
Регистрация: 24.01.2006
Адрес: Санкт-Петербург
Записей в блоге: 19
Цитата:
Open Method
See Also Applies To Example Specifics
Open method as it applies to the Workbooks object.

Opens a workbook.

expression.Open(FileName, UpdateLinks, ReadOnly, Format, Password, WriteResPassword, IgnoreReadOnlyRecommended, Origin, Delimiter, Editable, Notify, Converter, AddToMru, Local, CorruptLoad, OpenConflictDocument)

expression Required. An expression that returns the Workbooks object.

FileName Required String. The file name of the workbook to be opened.

UpdateLinks Optional Variant. Specifies the way links in the file are updated. If this argument is omitted, the user is prompted to specify how links will be updated. Otherwise, this argument is one of the values listed in the following table.

Value Meaning
0 Doesn't update any references
1 Updates external references but not remote references
2 Updates remote references but not external references
3 Updates both remote and external references

If Microsoft Excel is opening a file in the WKS, WK1, or WK3 format and the UpdateLinks argument is 2, Microsoft Excel generates charts from the graphs attached to the file. If the argument is 0, no charts are created.

ReadOnly Optional Variant. True to open the workbook in read-only mode.

Format Optional Variant. If Microsoft Excel is opening a text file, this argument specifies the delimiter character, as shown in the following table. If this argument is omitted, the current delimiter is used.

Value Delimiter
1 Tabs
2 Commas
3 Spaces
4 Semicolons
5 Nothing
6 Custom character (see the Delimiter argument)
Это из хелпа Excel 2002. Попробуйте явно задать нужный 4-й параметр - Format = Value Delimiter. Т.е. 2 - для запятой.

А по умолчанию в методе \Classes\SysExcelWorkbooks\open стоит 5, т.е. "ничего":
X++:
abstract public boolean open( 
   str _fileName,   // The file name of the workbook to be opened.
   int _updateLinks = 0,   // Specifies the way links in the file are updated.
   boolean _readOnly = false,   // True to open the workbook in read-only mode.
   int _format = 5,   // If Microsoft Excel is opening a text file, this argument specifies the delimiter character.
..........
За это сообщение автора поблагодарили: kashperuk (5), kitty (1).