Delphi excel ole error

0 / -1 / 0

Регистрация: 19.02.2015

Сообщений: 60

1

29.12.2015, 06:21. Показов 25912. Ответов 12


Студворк — интернет-сервис помощи студентам

Программа спокойно компилируется, но периодически выскакивает данная ошибка, она может выскочить до подключения к файлу, после считывания строк, не имеет значения сколько считает, всегда появляется с некой рандомностью, при этом, если ошибка выскакивает после считывания некоторых строк в массив, то содержимое массива не выводится. Ошибка ole error 800a03ec, перерыл уже много источников, но везде одно и тоже описывается, не правильный тип данных в Excele, но оно же иногда работает, у столбцов одинаковы типы данных ‘текстовый’.

Delphi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
var
  Ap : Variant;
  Nomer,metka:integer;
  Mas: array[1..5] of AnsiString;
   Rows, Columns, i,RNum: Integer;
begin
randomize;
metka:=0;// показывает записалось главное слово в перевод или нет
i:=0;
try
Ap := CreateOleObject('Excel.Application');
Ap.Workbooks.Open(ExtractFilePath(Application.ExeName)+'Japanese.xlsx',0,True);
Rows := ap.ActiveSheet.UsedRange.Rows.Count;
Columns := ap.ActiveSheet.UsedRange.Columns.Count;
finally
if rows=0 then showmessage('Подключиться к базе не удалось')
else    showmessage('Подключение к базе удалось');
 
 
 label3.Caption:=  inttostr(Rows);
nomer:=random(rows);// индекс главного слова
for i := 1 to 5 do
  mas[i]:='';
 
 
  for I := 1 to 5 do
            begin
                case i of
                1:begin //////////////////////////////////
                    if metka=0 then
                    begin
                      RNum:=random(4);
                      if RNum=0 then
                        begin mas[i]:=Ap.Range['B'+inttostr(nomer)]; metka:=1; showmessage('Case №1, metka= '+inttostr(metka)+ ' шанс срабатывания, слово: '+mas[i]); end
                      else
                        begin mas[i]:=Ap.Range['B'+inttostr(random(rows))]; showmessage('Case №1, metka= '+inttostr(metka)+' '+mas[i]); end;
                      end
                    else
                      begin
                        mas[i]:=Ap.Range['B'+inttostr(random(rows))];
                      end;
                    end; ///////////////////////////////
                2: begin ///////////////////////////////
                      if metka=0 then
                      begin
                        RNum:=random(4);
                         if RNum=0 then
                          begin
                            mas[i]:=Ap.Range['B'+inttostr(nomer)]; metka:=1; showmessage('Case №2, metka= '+inttostr(metka)+' '+mas[i]);
                          end
                         else
                          begin
                           mas[i]:=Ap.Range['B'+inttostr(random(rows))] ; showmessage('Case №2, metka= '+inttostr(metka)+ ' шанс срабатывания, слово: '+mas[i]);
                          end;
                      end
                      else
                      begin
                        mas[i]:=Ap.Range['B'+inttostr(random(rows))];
                      end;
                  end;////////////////////////////////
 
                3:begin
                    if metka=0 then
                    begin
                      RNum:=random(4);
                      if RNum=0 then
                        begin
                          mas[i]:=Ap.Range['B'+inttostr(nomer)]; metka:=1; showmessage('Case №3, metka= '+inttostr(metka)+ ' шанс срабатывания, слово: '+mas[i] );
                        end
                      else
                        begin
                          mas[i]:=Ap.Range['B'+inttostr(random(rows))]; showmessage('Case №3, metka= '+inttostr(metka)+' '+mas[i]);
                        end;
                    end
                    else
                      begin
                        mas[i]:=Ap.Range['B'+inttostr(random(rows))];showmessage('Case №3, metka= '+inttostr(metka)+' '+mas[i])
                      end;
                  end;
 
                4:begin
                    if metka=0 then
                    begin
                      RNum:=random(4);
                      if RNum=0 then
                        begin
                          mas[i]:=Ap.Range['B'+inttostr(nomer)]; metka:=1; showmessage('Case №4, metka= '+inttostr(metka)+ ' шанс срабатывания, слово: '+mas[i]);
                        end
                      else
                      begin
                        mas[i]:=Ap.Range['B'+inttostr(random(rows))]; showmessage('Case №4, metka= '+inttostr(metka)+' '+mas[i])
                      end;
                    end
                    else
                      begin
                        mas[i]:=Ap.Range['B'+inttostr(random(rows))]; showmessage('Case №4, metka= '+inttostr(metka)+' '+mas[i])
                      end;
                  end;
                5:begin if (mas[5]='') and (metka=0) then
                        begin
                          mas[i]:=Ap.Range['B'+inttostr(nomer)]; showmessage('Case №5, metka= '+inttostr(metka)+' '+mas[i]);
                        end
                      else
                       begin
                        mas[i]:=Ap.Range['B'+inttostr(random(rows))]; showmessage('Case №55, metka= '+inttostr(metka)+' '+mas[i]);
                       end;
                       end;
             end
 
 end;
  end;
 
 
metka:=0;
for I := 1 to 5 do
combobox1.Items.Add(mas[i]);
 
Label1.Caption := Ap.Range['A'+inttostr(nomer)];
 
 
 
 
end;



0



Содержание

  1. Как исправить ошибку Microsoft Excel 0x800A01A8
  2. «Excel Error 0X800A01A8» Введение
  3. Когда происходит ошибка 0x800A01A8?
  4. Типичные ошибки Excel Error 0X800A01A8
  5. Корень проблем Excel Error 0X800A01A8
  6. Outlook ole error 800A01A8 when closing it with more than 10 outlook-explorer windows
  7. 1 Answer 1
  8. Related
  9. Hot Network Questions
  10. Subscribe to RSS
  11. Add-in Express for Office and VCL forum
  12. Add-in Express for Office and VCL forum

Как исправить ошибку Microsoft Excel 0x800A01A8

Номер ошибки: Ошибка 0x800A01A8
Название ошибки: Excel Error 0X800A01A8
Описание ошибки: Ошибка 0x800A01A8: Возникла ошибка в приложении Microsoft Excel. Приложение будет закрыто. Приносим извинения за неудобства.
Разработчик: Microsoft Corporation
Программное обеспечение: Microsoft Excel
Относится к: Windows XP, Vista, 7, 8, 10, 11

«Excel Error 0X800A01A8» Введение

«Excel Error 0X800A01A8» часто называется ошибкой во время выполнения (ошибка). Разработчики, такие как Microsoft Corporation, обычно проходят через несколько контрольных точек перед запуском программного обеспечения, такого как Microsoft Excel. К сожалению, такие проблемы, как ошибка 0x800A01A8, могут не быть исправлены на этом заключительном этапе.

Некоторые пользователи могут столкнуться с сообщением «Excel Error 0X800A01A8» при использовании Microsoft Excel. После того, как об ошибке будет сообщено, Microsoft Corporation отреагирует и быстро исследует ошибки 0x800A01A8 проблемы. Затем они исправляют дефектные области кода и сделают обновление доступным для загрузки. Если есть уведомление об обновлении Microsoft Excel, это может быть решением для устранения таких проблем, как ошибка 0x800A01A8 и обнаруженные дополнительные проблемы.

Когда происходит ошибка 0x800A01A8?

В большинстве случаев вы увидите «Excel Error 0X800A01A8» во время загрузки Microsoft Excel. Рассмотрим распространенные причины ошибок ошибки 0x800A01A8 во время выполнения:

Ошибка 0x800A01A8 Crash — программа обнаружила ошибку 0x800A01A8 из-за указанной задачи и завершила работу программы. Если Microsoft Excel не может обработать данный ввод, или он не может получить требуемый вывод, это обычно происходит.

Утечка памяти «Excel Error 0X800A01A8» — при утечке памяти Microsoft Excel это может привести к медленной работе устройства из-за нехватки системных ресурсов. Критическими проблемами, связанными с этим, могут быть отсутствие девыделения памяти или подключение к плохому коду, такому как бесконечные циклы.

Ошибка 0x800A01A8 Logic Error — Логическая ошибка вызывает неправильный вывод, даже если пользователь дал действительные входные данные. Виновником в этом случае обычно является недостаток в исходном коде Microsoft Corporation, который неправильно обрабатывает ввод.

Microsoft Corporation проблемы файла Excel Error 0X800A01A8 в большинстве случаев связаны с повреждением, отсутствием или заражением файлов Microsoft Excel. Большую часть проблем, связанных с данными файлами, можно решить посредством скачивания и установки последней версии файла Microsoft Corporation. Помимо прочего, в качестве общей меры по профилактике и очистке мы рекомендуем использовать очиститель реестра для очистки любых недопустимых записей файлов, расширений файлов Microsoft Corporation или разделов реестра, что позволит предотвратить появление связанных с ними сообщений об ошибках.

Типичные ошибки Excel Error 0X800A01A8

Усложнения Microsoft Excel с Excel Error 0X800A01A8 состоят из:

  • «Ошибка в приложении: Excel Error 0X800A01A8»
  • «Недопустимый файл Excel Error 0X800A01A8. «
  • «Excel Error 0X800A01A8 должен быть закрыт. «
  • «Не удается найти Excel Error 0X800A01A8»
  • «Excel Error 0X800A01A8 не может быть найден. «
  • «Ошибка запуска программы: Excel Error 0X800A01A8.»
  • «Не удается запустить Excel Error 0X800A01A8. «
  • «Excel Error 0X800A01A8 выйти. «
  • «Неверный путь к программе: Excel Error 0X800A01A8. «

Проблемы Microsoft Excel Excel Error 0X800A01A8 возникают при установке, во время работы программного обеспечения, связанного с Excel Error 0X800A01A8, во время завершения работы или запуска или менее вероятно во время обновления операционной системы. Выделение при возникновении ошибок Excel Error 0X800A01A8 имеет первостепенное значение для поиска причины проблем Microsoft Excel и сообщения о них вMicrosoft Corporation за помощью.

Корень проблем Excel Error 0X800A01A8

Эти проблемы Excel Error 0X800A01A8 создаются отсутствующими или поврежденными файлами Excel Error 0X800A01A8, недопустимыми записями реестра Microsoft Excel или вредоносным программным обеспечением.

В основном, осложнения Excel Error 0X800A01A8 связаны с:

  • Недопустимая (поврежденная) запись реестра Excel Error 0X800A01A8.
  • Загрязненный вирусом и поврежденный Excel Error 0X800A01A8.
  • Вредоносное удаление (или ошибка) Excel Error 0X800A01A8 другим приложением (не Microsoft Excel).
  • Excel Error 0X800A01A8 конфликтует с другой программой (общим файлом).
  • Поврежденная установка или загрузка Microsoft Excel (Excel Error 0X800A01A8).

Совместима с Windows 2000, XP, Vista, 7, 8, 10 и 11

Источник

Outlook ole error 800A01A8 when closing it with more than 10 outlook-explorer windows

I have written an Outlook plugin in Delphi 2009 that opens a database connection and does some tasks to accompany my main application.
When Outlook is now closed it raises an 800A01A8 ole error, but only if you had about 10 outlook-explorer windows open. Another important point is that that only happens occasionally when you use FileExit to close all windows at once, but much more often, even so not always, when you close them all at once using the windows taskbar close all feature.
When attaching the debugger I could not find where that error is fired.
I am kind of lost here.

1 Answer 1

Outlook ole error 800A01A8 = Object required.

Object Required is a server component, typically an update component or mail component. You are trying to use such an object which is already destroyed.

Perhaps you add a runtime stack tracer. For example madExcept, EurekaLog or JEDI JCL’s JCL is the only free offering from the above. In order to generate an Error Dialog for your program with the Stack Trace in it go to File | New Items | Delphi Files | «JCL Exception Dialog for Delphi».

With such a tool, when the error is raised at runtime you will see the stack trace which will help you to diagnose the problem.

Hot Network Questions

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.3.20.43331

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

Add-in Express for Office and VCL forum

Add-in Express™ Support Service
That’s what is more important than anything else

Add new topic Add-in Express for VCL

  • Products & technologies
  • Office add-ins in .net
  • Office addins in Delphi
  • Advanced Outlook Regions for VSTO
  • Designer for WIX Toolset
  • VDProj to WiX Converter
  • Website
  • Add-in Express Blog
  • Samples
  • HowTo samples for developers
  • Sample add-ins for Excel, Word, Outlook
  • Developer Guides
  • Add-in Express for Office and .net
  • Add-in Express for Office and Delphi
  • Add-in Express for Internet Explorer
  • Designer for WiX Toolset
  • Outlook Security Manager

Add-in Express™
for Microsoft® Office and .net

Solid framework for deep customization of Microsoft Office. Use solution templates, visual designers and components to develop version-neutral, secure and easy deployable extensions for all Office versions.

Supported Office extensions
COM add-ins, Outlook plug-ins, RTD servers, smart tags, Excel XLL and UDF

This technology is now available for our custom development services only. Based on the Add-in Express for Office core, it is designed for building custom-tailored Office add-ins with far less coding than you usually have to do. Plus, it includes all Add-in Express features such as True RAD, visual designers, Outlook view and form regions, etc.

Extensions: VSTO-based application-level Office add-ins
Applications: Outlook, Excel, Word, PowerPoint, Visio, InfoPath
Office versions: 2003, 2007, 2010 (x86 and x64)
IDE: VSTO 2005 SE, 2008, 2010; VB.NET, C#

Add-in Express™
for Microsoft® Office and Delphi® VCL

Get the best platform for building version-neutral, fast and easy deployable plug-ins by using Add-in Express projects templates, visual designers, components and wizards in combination with a perfect Delphi compiler.

Supported Office extensions
COM add-ins, Outlook plug-ins, smart tags, Excel RTD and UDF

Add-in Express™
for Internet Explorer® and Microsoft® .net

Use this visual tool to create thread-safe, secure, isolated, deployable and context-sensitive Internet Explorer add-ons.

Use visual designers and components to customize the IE interface with your own buttons, menu items, context menus, side-bars etc.

Add-in Express™ Regions
for Microsoft® Outlook® and VSTO

Use this VSTO extension to develop advanced view and form regions for 17 different areas of the main Outlook Explorer window and all Outlook Inspector windows.

Supported extensions
Application-level Outlook add-ins

Designer
for Visual Studio® and WiX Toolset

This is an extension for Visual Studio that allows developers to quickly create WiX-based setup projects in a familiar Visual Studio way.

The Designer for WiX Toolset lets you forget the plain Windows Installer XML and concentrate on your deployment logic. It integrates several editors with the Visual Studio IDE and provides a set of vdproj designers to configure the file system, registry, user interface, custom actions, launch conditions and more for your setup projects.

This technology is now available for our custom development services only. This visual toolkit allows creating secure, managed, isolated, deployable and version-neutral plug-ins for Outlook Express and Windows Mail. It provides powerful solution templates, Outlook Express — specific components, visual designers and wizards for advanced customization of Outlook Express menus, toolbars, panes and regions.

Extensions: Outlook Express plug-ins
Versions: Outlook Express 6.x, Windows Mail 6.x
IDE: VS 2005, 2008; VB.NET, C#, C++/CLI

VDProj to WiX Converter
for Microsoft® Visual Studio®

This Visual Studio extension lets you convert any VDProj setup projects to WiX in a click.

All Visual Studio versions and all vdproj features are supported, including variables, msm and msi packages, custom actions, built-in dialogs, etc.

Security Manager
for Microsoft® Outlook

Add just a few lines of code to bypass the Outlook Object Model guard and avoid security warnings in add-ins and applications that automate Microsoft Outlook.

Supported application types
Stand-alone apps, Outlook add-ins

The innovative technology for customizing Outlook views and forms. It is included in all Add-in Express for Office products and can be used to extend Outlook views, e-mail, task and appointment windows, To-Do bar, Reading and Navigation panes with your own custom sub-panes.

Источник

Add-in Express for Office and VCL forum

Add-in Express™ Support Service
That’s what is more important than anything else

Add new topic Add-in Express for VCL

  • Products & technologies
  • Office add-ins in .net
  • Office addins in Delphi
  • Advanced Outlook Regions for VSTO
  • Designer for WIX Toolset
  • VDProj to WiX Converter
  • Website
  • Add-in Express Blog
  • Samples
  • HowTo samples for developers
  • Sample add-ins for Excel, Word, Outlook
  • Developer Guides
  • Add-in Express for Office and .net
  • Add-in Express for Office and Delphi
  • Add-in Express for Internet Explorer
  • Designer for WiX Toolset
  • Outlook Security Manager

Add-in Express™
for Microsoft® Office and .net

Solid framework for deep customization of Microsoft Office. Use solution templates, visual designers and components to develop version-neutral, secure and easy deployable extensions for all Office versions.

Supported Office extensions
COM add-ins, Outlook plug-ins, RTD servers, smart tags, Excel XLL and UDF

This technology is now available for our custom development services only. Based on the Add-in Express for Office core, it is designed for building custom-tailored Office add-ins with far less coding than you usually have to do. Plus, it includes all Add-in Express features such as True RAD, visual designers, Outlook view and form regions, etc.

Extensions: VSTO-based application-level Office add-ins
Applications: Outlook, Excel, Word, PowerPoint, Visio, InfoPath
Office versions: 2003, 2007, 2010 (x86 and x64)
IDE: VSTO 2005 SE, 2008, 2010; VB.NET, C#

Add-in Express™
for Microsoft® Office and Delphi® VCL

Get the best platform for building version-neutral, fast and easy deployable plug-ins by using Add-in Express projects templates, visual designers, components and wizards in combination with a perfect Delphi compiler.

Supported Office extensions
COM add-ins, Outlook plug-ins, smart tags, Excel RTD and UDF

Add-in Express™
for Internet Explorer® and Microsoft® .net

Use this visual tool to create thread-safe, secure, isolated, deployable and context-sensitive Internet Explorer add-ons.

Use visual designers and components to customize the IE interface with your own buttons, menu items, context menus, side-bars etc.

Add-in Express™ Regions
for Microsoft® Outlook® and VSTO

Use this VSTO extension to develop advanced view and form regions for 17 different areas of the main Outlook Explorer window and all Outlook Inspector windows.

Supported extensions
Application-level Outlook add-ins

Designer
for Visual Studio® and WiX Toolset

This is an extension for Visual Studio that allows developers to quickly create WiX-based setup projects in a familiar Visual Studio way.

The Designer for WiX Toolset lets you forget the plain Windows Installer XML and concentrate on your deployment logic. It integrates several editors with the Visual Studio IDE and provides a set of vdproj designers to configure the file system, registry, user interface, custom actions, launch conditions and more for your setup projects.

This technology is now available for our custom development services only. This visual toolkit allows creating secure, managed, isolated, deployable and version-neutral plug-ins for Outlook Express and Windows Mail. It provides powerful solution templates, Outlook Express — specific components, visual designers and wizards for advanced customization of Outlook Express menus, toolbars, panes and regions.

Extensions: Outlook Express plug-ins
Versions: Outlook Express 6.x, Windows Mail 6.x
IDE: VS 2005, 2008; VB.NET, C#, C++/CLI

VDProj to WiX Converter
for Microsoft® Visual Studio®

This Visual Studio extension lets you convert any VDProj setup projects to WiX in a click.

All Visual Studio versions and all vdproj features are supported, including variables, msm and msi packages, custom actions, built-in dialogs, etc.

Security Manager
for Microsoft® Outlook

Add just a few lines of code to bypass the Outlook Object Model guard and avoid security warnings in add-ins and applications that automate Microsoft Outlook.

Supported application types
Stand-alone apps, Outlook add-ins

The innovative technology for customizing Outlook views and forms. It is included in all Add-in Express for Office products and can be used to extend Outlook views, e-mail, task and appointment windows, To-Do bar, Reading and Navigation panes with your own custom sub-panes.

Источник


Форум программистов Vingrad

Модераторы: MetalFan

Поиск:

Ответ в темуСоздание новой темы
Создание опроса
> Ошибка ‘OLE error 800A03EC’, При обновлении внешних данных ошибается! 

:(

   

Опции темы

allknower
Дата 18.10.2007, 13:36 (ссылка)
| (нет голосов)
Загрузка ... Загрузка …




Быстрая цитата

Цитата

Новичок

Профиль
Группа: Участник
Сообщений: 15
Регистрация: 21.12.2006
Где: Краснодар

Репутация: нет
Всего: нет

Код

Procedure .......
  ExcelApp.Connect;
   while finish>0 do
     begin
       try
         ExcelApp.WorkBooks.Open(Path,
                        EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam, 
                        EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam, 
                        EmptyParam,EmptyParam{,EmptyParam,EmptyParam},0);         
         ExcelApp.Application.EnableEvents := false; 

         WorkBk := ExcelApp.WorkBooks.Item[1{i}];    

         For i:=1 to WorkBk.Worksheets.Count do
           begin
             WorkSheet:=WorkBk.WorkSheets.Get_Item(i) as _WorkSheet;
             if WorkSheet.Name = SheetName then
               begin
                 bNaydeno:=True;
                 WorkSheet.Activate(LOCALE_USER_DEFAULT);  
               end;
             if bNaydeno then break;
           end;
//-----------------------------------------------------
         if cb1.Checked then           //rep1
           begin        
             WorkSheet.Range['B2',EmptyParam].QueryTable.Refresh(false);
             progress.Progress:=progress.Progress+p_tmp div 2;
             WorkSheet.Range['B29',EmptyParam].QueryTable.Refresh(false);
           //  progress.Progress:=position+p_tmp;
             progress.Progress:=30;
             cb1.State:=cbGrayed;
           end
         else
//      . . .
         if cb6.Checked then           //rep6
           begin
              WorkSheet.Range['B4',EmptyParam].QueryTable.Refresh(false); // возникает ошибка!!!
              WorkSheet.Range['F4',EmptyParam].QueryTable.Refresh(false);
              cb6.State:=cbGrayed;
              progress.Progress:=80;
           end;
    end; // while
end; // procedure

procedure TForm1.CB1Click(Sender: TObject); // При выборе checkBox'a finish инкрементируется, при переводе в состояние cbGrayed - дерементируется
begin
  if (sender as TCheckBox).Checked then inc(finish)
  else dec(finish);
end;

При выполнении кода ^^^ на строчке WorkSheet.Range[‘B4’,EmptyParam].QueryTable.Refresh(false); вываливается ошибка:
user posted image

Цитата
Project Project1.exe raised exception class EOleException with message ‘OLE error 800A03EC’. Process stopped. Use Step or Run to continue.

В чем я не прав?

PM MAIL ICQ   Вверх
iskatel2
Дата 25.12.2007, 11:53 (ссылка)
| (нет голосов)
Загрузка ... Загрузка …




Быстрая цитата

Цитата

Новичок

Профиль
Группа: Участник
Сообщений: 14
Регистрация: 11.5.2006
Где: 58 RU

Репутация: нет
Всего: нет

Тупик при передаче данных в Excel

передаю ячейке Excel данные (string) c помощью следующей процедуры:

Код

  procedure ExelFill(var text:string; pnt:TExel_pnt);
  var
    txt:string;
  begin
      txt:= text;
      try
        ExcelWorksheet1.Range[pnt.stolbik , pnt.stroka].NumberFormat := '@';
        ExcelWorksheet1.Range[pnt.stolbik , pnt.stroka].HorizontalAlignment := xlCenter;
        ExcelWorksheet1.Range[pnt.stolbik , pnt.stroka].Font.Bold:=true;
      finally
          ExcelWorksheet1.Range[pnt.stolbik , pnt.stroka].Value2:=txt;
      end;
  end;

вызов следующий:

Код

  ins_pnt.stolbik:='E16'; ins_pnt.stroka:='E16';
  tmp_str:=FloatToStrF(SSD[n].AV,ffGeneral,4,3);
  ExelFill(tmp_str,ins_pnt);

часть данных (например данные — ‘0,2’) выводиться без проблем

а часть (например данные — ‘0,8’) выдаёт следующую ошибку «Raised exception class EOleException » OLE error 800A03EC»

НЕПОНИМАЮ! ! !  почему в первом случае ошибки нет а во втором ошибка? 

p.s. ячейки куда выводяться данные различные.

PM MAIL ICQ   Вверх
CTapMex
Дата 4.1.2008, 00:54 (ссылка)
| (нет голосов)
Загрузка ... Загрузка …




Быстрая цитата

Цитата

Шустрый
*

Профиль
Группа: Участник
Сообщений: 55
Регистрация: 20.2.2007

Репутация: нет
Всего: нет

аналогичная ошибка у меня стала появляться недели как 2. вначале думал что дело в объеме данных которые вставляю в excel, т.к. при небольшом количестве все нормально, а много — и ошибка. копаю дальше … 

PM MAIL   Вверх
CTapMex
Дата 4.1.2008, 13:54 (ссылка)
| (нет голосов)
Загрузка ... Загрузка …




Быстрая цитата

Цитата

Шустрый
*

Профиль
Группа: Участник
Сообщений: 55
Регистрация: 20.2.2007

Репутация: нет
Всего: нет

все оказалось проще… точнее сложнее
в общем вот статейка, как раз должна решить жту ошибку. мне помогла

PM MAIL   Вверх
sergey1
Дата 31.10.2010, 04:01 (ссылка)
| (нет голосов)
Загрузка ... Загрузка …




Быстрая цитата

Цитата

Новичок

Профиль
Группа: Участник
Сообщений: 1
Регистрация: 31.10.2010

Репутация: нет
Всего: нет

Модератор: Сообщение скрыто.

PM MAIL   Вверх
Akella
Дата 10.10.2014, 14:51 (ссылка)
| (нет голосов)
Загрузка ... Загрузка …




Быстрая цитата

Цитата

Творец
****

Профиль
Группа: Модератор
Сообщений: 18485
Регистрация: 14.5.2003
Где: Корусант

Репутация: 2
Всего: 329

Может кому будет актуальная тема ещё.
Ошибка OLE error 800A03EC связана выходом за рамки диапазона.

Код

Var
 WorkBk : _WorkBook; //  определяем WorkBook
 WorkSheet : _WorkSheet; //  определяем WorkSheet
begin
....
...
  vType   := WorkSheet.Cells.Item[iRowIndex, iColumnIndex].Value

Если в iColumnIndex будет значение -1 (минус один), то будет ошибка, т.к. колонки с индексом -1 не бывает, в экселе колонки начинаются с единицы.

PM MAIL   Вверх



















Ответ в темуСоздание новой темы
Создание опроса
Правила форума «Delphi: ActiveX/СОМ/CORBA»

Rrader
Girder

Запрещено:

1. Публиковать ссылки на вскрытые компоненты

2. Обсуждать взлом компонентов и делиться вскрытыми компонентами

  • Литературу по Delphi обсуждаем здесь
  • Действия модераторов можно обсудить здесь
  • С просьбами о написании курсовой, реферата и т.п. обращаться сюда
  • Вопросы по реализации алгоритмов рассматриваются здесь
  • 90% ответов на свои вопросы можно найти в DRKB (Delphi Russian Knowledge Base) — крупнейшем в рунете сборнике материалов по Delphi
  • Вопросы по SQL и вопросы по базам данных, не связанные с Delphi, задавать здесь

Если Вам помогли, и атмосфера форума Вам понравилась, то заходите к нам чаще! С уважением, Rrader, Girder.

 

0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | Delphi: ActiveX/СОМ/CORBA | Следующая тема »

Понравилась статья? Поделить с друзьями:
  • Deliver on your word
  • Delimiters in excel vba
  • Delimiter in excel vba
  • Delight word meaning a
  • Delight in your word