|
|
|
Народ помогите с Excel
|
|||
|---|---|---|---|
|
#18+
нашел пример CDatabase database; CString sSql; CString sItem1, sItem2; CString sDriver; CString sDsn; CString sFile = "ReadExcel.xls"; ...... TRY { // Open the database using the former created pseudo DSN database.Open(NULL,false,false,sDsn); // Allocate the recordset CRecordset recset( &database ); // Build the SQL string // Remember to name a section of data in the Excel sheet using "Insert->Names" to be // able to work with the data like you would with a table in a "real" database. There // may be more than one table contained in a worksheet. sSql = "SELECT field_1, field_2 " "FROM demo_table " "ORDER BY field_1"; (CRecordset::forwardOnly,sSql,CRecordset::readOnly); ............... Вот здесь то и возникла проблема, а что делать если я не знаю названия таблицы, т.е. как мне ее узнать. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.09.2003, 18:33 |
|
||
|
|

start [/forum/topic.php?fid=57&msg=32274893&tid=2035974]: |
0ms |
get settings: |
9ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
64ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
38ms |
get tp. blocked users: |
2ms |
| others: | 241ms |
| total: | 390ms |

| 0 / 0 |
