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
10
votes
1 answer

how to read vba code from hex stream extracted from vbaProject.bin?

I have a corrupted Excel vbaproject.bin extracted from .xlam add-in. How can I read modules with vba code extracted from this bin file as HEX streams? I'm using oletools, more details in this…
denfromufa
  • 5,610
  • 13
  • 81
  • 138
10
votes
3 answers

Is there any library to access OLE Structured Storage from C#?

Can I find some open source library for accessing (reading only is ok) OLE Storage like doc or xls files in c#?
Rohit
  • 3,610
  • 7
  • 45
  • 76
10
votes
1 answer

Why doesn't WINWORD.EXE quit after Closing the document from Delphi?

I managed to distill one of the underlying issues rooted in my question How to trace _AddRef / _Release calls for OLE Automation objects in the unit below. I'll answer this answer too, just in case anyone else bumps into this. The question: with the…
Jeroen Wiert Pluimers
  • 23,965
  • 9
  • 74
  • 154
10
votes
1 answer

Search and replace in OLE Word automation - how to cover header and footer?

I've a perfectly working function to find and replace a variable with text in word documents. HRESULT CMSWord::FindReplace( CString szVar, CString szText, bool bOnlyOnce/*=false*/ ) { if(m_pWApp==NULL || m_pActiveDocument==NULL) return E_FAIL; …
masche
  • 1,643
  • 2
  • 14
  • 24
9
votes
5 answers

How to script an OLE component using Python

I would like to use Python to script an application that advertises itself as providing an OLE component. How should I get started? I don't yet know what methods I need to call on the COMponents I will be accessing. Should I use win32com to load…
joeforker
  • 40,459
  • 37
  • 151
  • 246
8
votes
4 answers

Is there OLE Automation in Java?

Is it possible to use OLE Automation in Java? If not, why is it not possible in Java? I'm looking to automate the exporting of excel spreadsheets in different format (ie, .csv etc...) Thanks for the answers in advance :)
Shahab
  • 1,977
  • 6
  • 24
  • 28
8
votes
1 answer

TThread and COM - "CoInitialize has not been called", although CoInitialize is called in the constructor

I'm trying to use COM interface within a thread. From what I have read I have to call CoInitialize/CoUninitialize in each thread. While this is working fine: procedure TThreadedJob.Execute; begin CoInitialize(nil); // some COM stuff …
forsajt
  • 857
  • 1
  • 7
  • 13
8
votes
4 answers

VBA to Prevent Keyboard Input While a Package Object (XML) is Read into ADODB Stream?

I am developing an application which opens and reads an XML document previously embedded in a PowerPoint presentation, or a Word document. In order to read this object (xmlFile as Object) I have to do: xmlFile.OLEFormat.DoVerb 1 This opens the…
David Zemens
  • 53,033
  • 11
  • 81
  • 130
8
votes
1 answer

How to evolve a COM interface?

COM is known to make backward-compatibility possible when releasing new components or applications. This is possible because interfaces in COM are stable i.e. they do not change. I tried hard to find a reference or book which deals with a descrition…
frast
  • 2,700
  • 1
  • 25
  • 34
8
votes
3 answers

Java SWT interop with COM - putting a float[] into a Variant?

In my Java SWT application I'm hosting an 3rd party ActiveX control. I'm using OleClientSite to do this. // Ah, this works. :-) OleAutomation comObject = new OleAutomation(...); There are 2 easy little functions I want to call from Java. Here are…
Judah Gabriel Himango
  • 58,906
  • 38
  • 158
  • 212
8
votes
2 answers

How can I programmatically open and save a PowerPoint presentation as HTML/JPEG in C# or Perl?

I am looking for a code snippet that does just this, preferably in C# or even Perl. I hope this not a big task ;)
Jeremy A
7
votes
1 answer

Getting application title from a Word OLE application object

Is there a way of getting the window title from a Word.Application OLE object? I'd like to use it to try get the window using FindWindow. I'm creating an OLE object and adding an existing document, like so: App :=…
Andrew
  • 1,494
  • 1
  • 17
  • 27
7
votes
5 answers

How to redirect mouse wheel message to other windows?

I'm developing a Word addin for MS Word on Windows, and this addin has as 'advanced task pane' showing and docking on the left side of the Word document window (it's treeview(outline) showing a list of Word documents for fast editing multiple…
Edwin Yip
  • 4,089
  • 4
  • 40
  • 86
7
votes
3 answers

Set OLE Request Timeout from C++

I am instantiating a local COM server using CoCreateInstance. Sometimes the application providing the server takes a long time to start. When this happens, Windows pops a dialog box like this: Server Busy The action cannot be completed because the…
J. Loomis
  • 196
  • 1
  • 6
7
votes
5 answers

Converting an OLE Image Object from MS Access for use in .NET

I'm working on redeveloping an Access based system into c#.net, however when MS went from office 2003 to office 2007 they removed the picture editor within access - which meant that previously stored pictures would no longer display in the system.…
Marlon
  • 2,129
  • 3
  • 21
  • 40
1
2
3
86 87