Questions tagged [ole]

OLE Automation, is an inter-process communication mechanism based on Component Object Model (COM).

In Microsoft Windows applications programming, OLE Automation (now just Automation), is an inter-process communication mechanism based on Component Object Model (COM) that is used by languages that run on Windows.

References:

1296 questions
63
votes
3 answers

What is the difference between COM and OLE?

What is the difference between COM and OLE, if any?
TASNEEMUDDIN
52
votes
1 answer

Excel Automation with Haskell gives a seg fault

I can fire up Excel with the following script. But in ghci (7.4.1) I have a segmentation fault when I run it. I don't know where to search from now. I don't have this error if I remove the line workSheets <- workBook # propertyGet_0…
jinkou2 jinkou2
  • 1,096
  • 7
  • 13
17
votes
3 answers

Implementing drag-drop from Chrome on my .NET Windows form

Google Chrome has a handy feature where I can click a download link and drag it into a Windows Explorer window, and then drop. After dropping, Chrome then downloads the file and it appears where I dropped it. I would like to be able to drop from…
Brad
  • 159,648
  • 54
  • 349
  • 530
16
votes
3 answers

Context menu disappears with Word automation

When I am editing a Word document in an OleContainer (inplace) and I switch to another Word document and then I switch back, I cannot use my rightmouse button anymore. The context menu will not show up. This happens on Word 2000, not on Word 2007 (I…
The_Fox
  • 6,992
  • 2
  • 43
  • 69
16
votes
2 answers

Embed files into Excel using Apache POI

I am exporting data to Excel file using Apache POI. In one weird requirement, I need to embed one file in the Excel using this POI. I have the file, and can be taken into streams or as byte arrays. After googling for much time, I am in a doubt…
Anoop
  • 1,439
  • 5
  • 20
  • 37
14
votes
4 answers

Python: Access embedded OLE from Office/Excel document without clipboard

I want to add and extract files from an Office/Excel document using Python. So far adding things is easy but for extracting I haven't found a clean solution. To make clear what I've got and what not I've written the small example test.py below and…
BREMI
  • 794
  • 1
  • 7
  • 12
14
votes
3 answers

Crystal Reports Changing the Data Source

I have a Crystal report where the data source has originally been set to use ODBC connections. Now I want to modify the data source to instead use OLE DB instead of using ODBC. How do I replace the data source connection without breaking the…
Batuta
  • 1,684
  • 17
  • 48
  • 62
13
votes
1 answer

COM surrogate for third party component

I'm writing a small DLL component that needs to access two third party components to combine data, one of which is 32 bit only and the other is 64 bit only. Both are registered with a TypeLib and are Automation compatible, so marshalling should not…
Simon Richter
  • 28,572
  • 1
  • 42
  • 64
13
votes
6 answers

Communicating with the OLE Server or ActiveX Control

MS Access 2010, Win 7 on a regular formI didn't intentionally place any ActiveX or OLE things.. not even sure what they are. But anyways, whenever I put something in the code of a particular form, it says "The Expression XXXXX you entered as the…
StuckAtWork
  • 1,613
  • 7
  • 23
  • 37
12
votes
1 answer

What is the proper way to check if Excel OLE is available?

I need to test if I can use Excel OLE from my program since it can be launched on PCs without Excel. Code samples on the net assume Excel is installed, but what if not? XLApp := CreateOleObject('Excel.Application'); try // Hide Excel …
Kromster
  • 7,181
  • 7
  • 63
  • 111
11
votes
3 answers

COM / OLE / ActiveX / IDispatch confusion

I can't wrap my head around the differences among these terms. Are COM and ActiveX synonyms? Is ActiveX object just a COM object that exposes IDispatch? Lots of older MSDN pages mention IDispatch without any COM context. Does it have a separate…
Ofek Shilon
  • 14,734
  • 5
  • 67
  • 101
11
votes
3 answers

Can the .NET 4 Task Parallel Library use COM objects?

This is an "is this possible, and if so can you give me a quick example because I can't find one online?" kind of question. I have a number of completely separate (i.e. "embarrassingly parallel") processes that I want to run in parallel using the…
user483679
  • 665
  • 1
  • 7
  • 21
11
votes
4 answers

How to create an E-Mail in Outlook and make it visible for the User

I want to create an E-Mail with a Java Application using Outlook and the OLE Client. I searched for examples and found quite a few. They all start the same way: Create the Display, the Shell, the OLE Frame and the OLE Client Site. But I get an…
Loki
  • 4,065
  • 4
  • 29
  • 51
10
votes
4 answers

Error "The object invoked has disconnected from its clients" - automate IE 8 with python and win32com

I would like to automate Internet Explorer 8 (using python 2.7 on Windows 7) machine. Here is my code after a post found on SO: import sys, time from win32com.client import WithEvents, Dispatch import pythoncom import threading …
Skarab
  • 6,981
  • 13
  • 48
  • 86
10
votes
1 answer

Undefined OLE references in external library even when linking with libole32

Using MINGW, I'm trying to link my C code with a static C++ library that performs some OLE operations: mingw32-gcc main.o resources.o -o mbcom.exe -L../../Lib/Iup -liup -liupole -lole32 -lcomctl32 -lstdc++ -mwindows Unfortunately, I get…
David Brown
  • 35,411
  • 11
  • 83
  • 132
1
2 3
86 87