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
7
votes
5 answers

Ole 800A03EC error when using TExcelWorkBook SaveAs method in Delphi 7

I am trying to open excel 2003 workbook and save it as something else, for example excel 95. I use the following…
Tofig Hasanov
  • 3,303
  • 10
  • 51
  • 81
7
votes
1 answer

Run-time error 429, ActiveX component can't create object, automate MS Word application, CreateObject("Word.Application")

I'm running into the following error when executing the following line from VBA (Access): Set wd = CreateObject("Word.Application") I found the following link, but did not find it useful: http://support.microsoft.com/kb/828550 Things I've…
Chloe
  • 25,162
  • 40
  • 190
  • 357
7
votes
4 answers

Could not convert variant of type (Null) into type (OleStr)

Do you know why the block of code bellow will negate the "Could not convert variant of type (Null) into type (OleStr)" on some computers, not all of them but 3 out of ten computers generate the error message. function GetWMIstringSW(const WMIClass,…
Cor4Ever
  • 229
  • 2
  • 7
  • 14
7
votes
1 answer

Embedding multiple MS Word instances in TOleContainer

This is giving me a headache... The delphi App I'm working on opens one or more forms with Word in a TOLEContainer. The problem I have is that when more than one form is opened with an embedded instance of Word, the controls of one instance affects…
0909EM
  • 4,761
  • 3
  • 29
  • 40
7
votes
1 answer

How to use Word in TOleContainer in TForm properly, layout-wise?

I wonder what is the suggested way to embed and control MS Word in a TForm, layout-wise? Currently, I (1) put two TPanel on TForm. The alBottom TPanel has one TButton, and the alClient TPanel has a alNone TOleContainer. (2) set up the layout in…
SOUser
  • 3,802
  • 5
  • 33
  • 63
6
votes
4 answers

Convert MathML to MathType in MS Word

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), …
stanch
  • 315
  • 1
  • 3
  • 13
6
votes
2 answers

Convert System.Drawing.Bitmap to stdole.StdPicture

I have a System.Drawing.Bitmap currently and I need to convert it into an stdole.StdPicture. Currently I'm using: var pic = (stdole.StdPicture)Microsoft.VisualBasic.Compatibility.VB6.Support.ImageToIPicture …
Simon Woker
  • 4,994
  • 1
  • 27
  • 41
6
votes
1 answer

set clipboard in async method

[STAThread] static void Main(string[] args) { DoThing().Wait(); } static async Task DoThing() { Clipboard.SetText("hi"); } I added [STAThread] in the first place bc I got this error ThreadStateException: Current thread must be set to…
theonlygusti
  • 11,032
  • 11
  • 64
  • 119
6
votes
1 answer

sp_OAGetProperty returning NULL with OUT variable declared as MAX

I have the following problem: Within a function I'm using an OLE object to make HTTP requests. The function is declared like this: function [dbo].[FN_GetRequestHTTP](@url varchar(2048), @reponseType varchar(10) = 'text') returns @responseTable…
IFebles
  • 328
  • 1
  • 2
  • 12
6
votes
2 answers

Perl's Data::Dumper shows objects instead of values

foreach my $row (1..$end) { foreach my $col (3..27 ) { # skip empty cells next unless defined $worksheet->Cells($row,$col)->{'Value'}; # print out the contents of a cell $var =…
Melissa
  • 99
  • 2
  • 8
6
votes
1 answer

How to free TOleStream in this bit of code

This is from a custom namespacer handler done in Delphi I use to load files into a webbrowser component. Datastream:IStream; var F: TFileStream; Dummy: INT64; begin F:=TFileStream.Create(strfilename fmOpenRead); CreateStreamOnHGlobal(0,…
Mode
  • 123
  • 2
  • 10
6
votes
2 answers

How to deal with "Microsoft Excel is waiting for another application to complete an OLE action"

When automating other MS-Office applications with excel, I frequently get ok-only prompts saying that Microsoft Excel is waiting for another application to complete an OLE action. This only happens when automating lengthy tasks. How can I deal with…
Martin Dreher
  • 1,514
  • 2
  • 12
  • 22
6
votes
2 answers

Why can't Win32::OLE talk to Excel2003 under Win2003?

I have a Web-based Perl Win32::OLE script that uses Excel on the server side. It has been working happily for years on a Win2000 server running Excel2000. We recently upgraded to Win2003/Excel2003 and I now get the following error from the script: …
dorianw
  • 61
  • 1
6
votes
1 answer

Getting "Ole::Storage::FormatError: OLE2 signature is invalid" when trying to get content out of a Word doc

I'm using Rails 5. I want to get text out of a Word document (.doc) so I'm using this code text = nil MSWordDoc::Extractor.load(file_location) do |ctl00_MainContent_List1_grdData| text = contents.whole_contents end but I'm getting the…
Dave
  • 15,639
  • 133
  • 442
  • 830
6
votes
1 answer

How to implement OLE server in C#

The question I want to ask is: (1) If I interact with clipboard by Clipboard class, what should be in "Embed Source" and "MetaFilePict" streams? (2) If I interact with clipboard by COM interface IDataObject, what should I do with the handle in…
Wu Zhenwei
  • 508
  • 3
  • 18
1 2
3
86 87