|
Кодировка в OLEDb
|
|||
---|---|---|---|
#18+
Добрый день! Помогите, создаю Excel таблицу через OleDbConnection с арабскими названиями колонок: string DistinationConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""C:\1\{0}.xls"";Extended Properties=""Excel 8.0; HDR = YES;CharacterSet=UTF8;"""; DistinationConnectionString = string.Format(DistinationConnectionString, fn); using (DbConnection conn = new OleDbConnection(DistinationConnectionString)) { DbCommand command = conn.CreateCommand(); string sqlCreate = "CREATE TABLE [Result]( [Subject: مفتاح] Long,[Subject: وصف] LongText,[Subject: الاسم الكامل] LongText)"; command.CommandText = sqlCreate.ToString(); conn.Open(); command.ExecuteNonQuery(); conn.Close(); } В итоге, ошибка при создании таблицы. Причем, на одной машине работает, на другой нет, куда копать? ПС Офис не установлен на машине. В реестре нет HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines ... |
|||
:
Нравится:
Не нравится:
|
|||
13.02.2018, 12:03 |
|
|
start [/forum/topic.php?fid=20&fpage=34&tid=1399496]: |
0ms |
get settings: |
8ms |
get forum list: |
13ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
53ms |
get topic data: |
9ms |
get forum data: |
1ms |
get page messages: |
36ms |
get tp. blocked users: |
1ms |
others: | 308ms |
total: | 433ms |
0 / 0 |