Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Начинающим";
Текущий архив: 2007.02.04;
Скачать: [xml.tar.bz2];

Вниз

F1Book   Найти похожие ветки 

 
Marat ©   (2007-01-17 08:26) [0]

Здравствуйте, мастера. Хочу разобраться с компонентой F1Book. Не подскажете где можно почитать подробности.


 
Marat ©   (2007-01-17 09:16) [1]

Хорошо. Задам вопрос по-другому.
Не могу считать файл Excel.
F1Book1.Read("C:\Projects\088\1.xls";0);
Понимаю, что вместо 0 должно быть что-то другое вроде параметра типа файла (SmallInt). Но не понимаю какой.


 
Сергей М. ©   (2007-01-17 09:32) [2]

Цитата из стандартной справки (($Delphi)\Ocx\Vci\Form1\VCF1.HLP)

Description

Reads a worksheet or workbook from disk.

Syntax

F1Book1.Read pPathName, pFileType

Part Type Description
pPathName String Name of the file to read. The name can include drive, path, and file name.
pFileType Integer Variable, passed by reference, that receives the returned type of the file that is read. This parameter is undefined if Read returns an error. Following is a list of valid F1FileTypeConstants returned to this variable:
Constants Description
F1FileFormulaOne Formula One format
F1FileExcel4 Excel 4.0 format
F1FileTabbedText Tab-delimited text file
F1FileExcel5 Excel 5.0 format
F1FileFormulaOne3 Formula One v.3 format
F1FileTabbedTextValuesOnly Tab-delimited text file values only
Remarks

Read initializes a workbook structure and reads a worksheet from the specified file. If there is not a workbook attached to the view, a new workbook is created.


 
Marat ©   (2007-01-17 09:43) [3]

я уже понял что со своим офисом-2002 мне эта компонента не понадобится.



Страницы: 1 вся ветка

Форум: "Начинающим";
Текущий архив: 2007.02.04;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.047 c
15-1168945620
Alexm112
2007-01-16 14:07
2007.02.04
Обеспечение безопасности пассажиров при полетах на самолете.


2-1169116390
mmip
2007-01-18 13:33
2007.02.04
Подключение к MS SQL


2-1168690301
Garacio
2007-01-13 15:11
2007.02.04
ShellExecute (спрятать запущенный процесс)


6-1156520514
BFG9k
2006-08-25 19:41
2007.02.04
idHTTPServer - ARespoceInfo в OnCommandGet


2-1169048500
azl
2007-01-17 18:41
2007.02.04
Ctrl + Enter и Memo





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский