Загружаю номенклатуру из эксель.
за основу взял это https://infostart.ru/public/163640/ установил Microsoft Access Database Engine 2010 Redistributable 32/64 bit.
файл читается, но напрочь отсутствует ПЕРВАЯ строка страницы. Из-за этого неправильно читается заголовок таблицы.
Если в начало страницы добавить первую непустую строку - теряется уже она, а заголовок считывается полностью.
может кто сталкивался с такой проблемой и решил ее? подскажите.
Setting IMEX=1 tells the driver to use Import mode. In this state, the registry setting ImportMixedTypes=Text will be noticed. This forces mixed data to be converted to text. For this to work reliably, you may also have to modify the registry setting, TypeGuessRows=8. The ISAM driver by default looks at the first eight rows and from that sampling determines the datatype. If this eight row sampling is all numeric, then setting IMEX=1 will not convert the default datatype to Text; it will remain numeric.
You must be careful that IMEX=1 not be used indiscriminately. This is IMPORT mode, so the results may be unpredictable if you try to do appends or updates of data in this mode.
The possible settings of IMEX are:
0 is Export mode
1 is Import mode
2 is Linked mode (full update capabilities)
(6) почти ничего не понял...
0 - экспорт. что это?
1 - если правильно понял, если в колонке числовые данные, драйвер будет пытаться преобразовать в число? мне этого не нужно. лучше сам преобразую.
2 - вообще непонятно. :-(
что нужно указать что бы все ячейки воспринимались как текст?
я уж сам как-нибудь преобразую в дату/число/что_мне_нужно...