ole

Communicating with ActiveX with a GCC compiler

How do I reference and communciate with an ActiveX library from within my gcc compiled application? ...

Convert MathML to MathType in MS Word

Hi, I am writing a converter from XML&MathML to MS Word document. I'm using MFC and Word automation, so there's no problem in writing text like this: _Application app; COleVariant vtOpt(DISP_E_PARAMNOTFOUND, VT_ERROR), vtTrue((short)TRUE), vtFalse((short)FALSE); app.CreateDispatch("Word.Application",NULL); Documents docs = app...

How can I create a IDataObject instance with Delphi?

This C++ code shows how OLE can be used to simulate a file drag and drop to simulate a 'Send to...' operation. This will open the standard mail client with the selected file(s) as an attachment, a very interesting alternative to the mailto: protocol handler. Which is the best (short and safe) way to create the neccessary instance of ID...

how to reload saved "Embed Source" clipboard data?

Hi all, some other windows application I'm trying to interface with, saves a dump of the clipboard to file. To be more precise, it looks for the "Embed Source" format in the clipboard, and if found saves it to file. "Embed Source" is some OLE based format, which is created, for example, when you copy an image from paintbrush. Is there ...

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 ;) ...

How do you open encrypted OOXML document in C#?

I want to open encrypted OOXML files, which are stored as streams inside a compound OLE file. Microsoft has an API for OOXML, (OOXML Format SDK 2.0, but it seems to lack a way to manipulate encrypted OOXML documents. So, this breaks into two questions. How do you open compound OLE documents in C#? I found this very similar question,...

Rails import from Excel issue

We are using Ruby on Rails code to import the data from an Excel sheet, we use an alert where it asks whether we upload the data and append to existing data (MySQL database) and display it in a grid designed in Flex 3, or replace the old data with new data. But we are getting this error: Error in Importing excel files Open OLE error cod...

Office Clipboard- status check programmatically ?

I have my own (patched)implementation of IDataObject::GetData say MyGetData. When I copy the data with Office Clipboard on, I get a call in MyGetData by Office Clipboard which tries to get the data to be pasted in its own clipboard viewer window the application which is pasting the copied data. I want to differentiate between these t...

How do I store pictures in SQL Server (MS Access interface)

Following podcast #59, I've been considering moving some images from an MS Access DB into MS SQL Server (it's the only piece I haven't migrate over yet). Right now they are stored as OLE Objects in the MS Access DB. However, I haven't got a clue what data type they should be stored as on the SQL Server side, or how to get them inserted ...

Opening OLE Compound Documents read-only with StgOpenStorage

Hi everyone! I'm using the StgOpenStorage API under XP to read an OLE Compound Document, but I can't find the right mix of flags to tell Windows that I need just to read the file without blocking access to it to any other process... Right now I'm using STGM_READ | STGM_EXCLUSIVE but obviously if at the same time I try to open the file fr...

Javascript OLE Word

I want to show a MS Word environment in an Iframe without all the toobars. The document that is being showed contains input fields. After these fields are filled in, the document must be printed. I have created the print button and want the (filled in) document printed when this button is clicked. I hope you understand want I want and h...

Java interface to Windows communications? (OLE, OPC, DDE)

I need to integrate an off-the-shelf Windows application with a Java application. At a few key points, I need the Windows application to send an "event" and some data to the Java application. The Windows application anticipated this need, and can be configured to "Poke a DDE Item", "Set an OLE Auto-Property" or "Write an OPC Item". I'...

Removing (or updating) an image from RichTextBox

I have a question related to managing OLE objects in a RichTextBox. What I've found so far is lots of info, but not exactly what I need, so I will make a quick introduction first (I also hope someone might find this helpful). 1. What I know so far First of all, I am using OLE to insert images (or any ActiveX) into the RichTextBox. Thi...

MS Access - OLE Server Error....HELP!!

So I developed this access database application (just the back end), on a lap top, and now I have tried to move it onto a network drive. The purpose of this thing is to track data for metrics, so there is a lot of data (700k rows at 15 fields for main table), and it runs these top N queries that it builds charts with... so i put it all ...

Get ID of excel worksheet in focus using OLE

Using C++ and OLE, how might I go about obtaining the ID of the worksheet that is currently in focus? For example, I have the following code: Variant excelSheets; Variant excelSheet; excelSheets.OleProcedure("Add"); excelSheet= excelSheets.OlePropertyGet("Item", 1); I would like to add a sheet and then get the sheet ...

Where are Adobe InDesign (OLE) COM Automation interfaces documented?

I am developing a .NET application (using C#) that needs to massage some Adobe InDesign files and output their content as PDFs. I could use InDesign's scripting but the COM interfaces seem a bit cleaner for this non-interactive work. Unfortunately, I have to guess at the semantics of InDesign's COM interfaces because I don't know where ...

How to cast a control to IOleObject

I want to invoke GetClientSite on a .net control. For this purpose I am trying to cast a control (in example Windows.Forms.Form) to IOleObject which returns null. What should I do to get IOleObject? using System; using System.Runtime.InteropServices; using System.Security; using System.Windows.Forms; namespace Test001 { public cla...

Vista focus issue when invoking Microsoft Word spell check from Oracle Forms

Friends, In testing our Oracle Forms application on Vista I have found a interesting "challenge". The application can invoke the Microsoft Word spell checker to perform a spell check on a field. When invoked, the user is shown the standard Microsoft Word spell checker dialog window. Word itself is invisble to the user. The Spell Che...

What causes an OLE DoDragDrop dragged item to change to the no-drop icon over a drop target?

By the no-drop icon I mean the circle with a slash indicating that you can't drop in the given location. Which function is responsible for triggering this icon change? ...

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 the COM function definitions: [id(5)] void easyFoo([in] int blah); [id(20)] void proble...