Questions tagged [createoleobject]

33 questions
11
votes
2 answers

Delphi SAPI Text-To-Speech

First of all: this is not a duplicate of Delphi and SAPI. I have a specific problem with the "SAPI in Delphi" subject. I have used the excellent Import Type-Library guide in Delphi 2009 to get a TSpVoice component in the component palette. This…
Andreas Rejbrand
  • 105,602
  • 8
  • 282
  • 384
3
votes
1 answer

Delphi CreateOleObject events

There is a code: var myobject: OleVariant; begin myobject := CreateOleObject('SomeNamespace.SomeClass'); end; This COM object has events (for example OnClick). How should I connect to these events without importing TLB?
Yuriy Vikulov
  • 2,469
  • 5
  • 25
  • 32
3
votes
1 answer

Automation server is launched twice with CreateOleObject but not all the time

I have a program written in Delphi 7 that is also an automation server. The automation server is registered the following way: TAutoObjectFactory.Create(ComServer, TMyServer, Class_App, ciMultiInstance, tmSingle); I have two COM add-ins, one…
Steve
  • 2,510
  • 4
  • 34
  • 53
2
votes
1 answer

Write / Read OLE Object from MS Access to File System with Java

I have a desktop application with Java 7, where user can fill form with data and choose a picture (only .jpg format) with file chooser and that insert it to MS Access database (.accdb). The app admin can export all data inserted last month in .csv…
Dragan Menoski
  • 1,092
  • 14
  • 33
1
vote
0 answers

Insert pdf as a package from VBA, to avoid application associations

I am attempting to speed up insertion of pdf's as embedded files into a Word document. In MS Word, from the insert object dialog, it is possible to select 'package' as an option. Doing this avoids the automatic association of the inserted file with…
rbren
  • 73
  • 7
1
vote
1 answer

How can I create a new sheet with multiple command buttons(OLEObject)?

I am working on a code that has two command buttons: 1) USER INPUT 2) Execute When clicked, the USER INPUT button makes a UserForm appear. Based on the UserForm input, the worksheet format adjusts and the user inputs data to the worksheet where…
Dives
  • 13
  • 3
1
vote
1 answer

Remove border from OLEObject on sheet in Excel with VBA

I'm using VBA to generate an Excel sheet which includes ActiveX form controls. However the documentation available for the object properties is rather sketchy. I notice that when I create, for example, an OptionButton control, the object includes a…
Chris Melville
  • 1,476
  • 1
  • 14
  • 30
1
vote
1 answer

OLEObject available verbs for Adobe Acrobat Documents

I'm embedding a PDF in an Excel file and then using VBA to open it as follows: Dim objMan As OLEObject Set objMan = ThisWorkbook.Worksheets("Public").OLEObjects.Item("Doc") objMan.Activate The problem I have is that it opens it in the background…
neelsg
  • 4,802
  • 5
  • 34
  • 58
0
votes
1 answer

phpword create multiple object link to different sheets in same excel file

I create multiple object which link to different sheets from same excel file using phpword template processor. I have create customized function in template processor.php to create object link to sheet. public function…
Premlatha
  • 1,676
  • 2
  • 20
  • 40
0
votes
1 answer

Using ConnectToNewObject with chilkat activex

I used Chilkat ActiveX in my PowerBuilder script loo_Sb = create oleobject li_rc =loo_Sb.ConnectToNewObject("Chilkat_9_5_0.StringBuilder") if li_rc < 0 then destroy loo_Sb MessageBox("Error","Connecting to COM object failed") return end…
0
votes
0 answers

VBA OLEObject - Edit icon and text position

Is it possible to edit the position of the icon and text in a OLEObject? Like this The default layout is as shown, and i would like to make it like this. Does anyone now if this is possible within VBA, or maybe there is an alternativ solution. Here…
0
votes
0 answers

Setting the Width and Height of an embedded OLEObject in an excel worksheet

When I debug the code below, it works perfectly. When I stop debugging, the width and height are not set. Can anyone help me figure out why? Dim vWidth As Integer Dim vHeight As Integer Dim OleObj As OleObject Set rg = Range("B57:AX57") …
0
votes
0 answers

OLEObjects.Add to right hand side of cell

I want to create a button that opens an image. This code works (if there's some text/numbers already inside column A, before you run it), but it will put the button on the left hand side of the B column. How can I adjust the code so that the button…
Jase
  • 1,025
  • 1
  • 9
  • 34
0
votes
0 answers

Cannot insert object AddOLEObject Excel C#

I am trying to add pdf file in Excel using shapes object. But every time I am getting following exception: Cannot insert object. at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[]…
Sunny
  • 3,185
  • 8
  • 34
  • 66
0
votes
2 answers

How to add image file as Ole object in excel using java

I tried with Aspose cell. But I am able to add pdf file properly. When I add jpg file, it shows in the excel file but doesnot get opened. I tried with following way. sheet.getOleObjects().get(oleObjectIndex).setImageData(binary); …
Swapnil Hadge
  • 59
  • 2
  • 11
1
2 3