ole

How to show on front (and not on background) a new email form in Outlook with OLE?

余生长醉 提交于 2019-12-01 21:07:17
I am using OLE with Delphi to communicate from my delphi app to Outlook. I am opening the new email form in Outlook using the following code. The problem is that the form is on background, so if the form from which I am generating the email form is maximized it will "cover" the Outlook new mail form. How can I make that form appear it on top? (not "sticking on top", but simply that it appears on top, then a user can mimimize it if they want). This is the code: try OutlookApp := GetActiveOleObject('Outlook.Application'); except OutlookApp := CreateOleObject('Outlook.Application'); end; try

Why does every class in VBA have an Application property?

和自甴很熟 提交于 2019-12-01 19:23:32
问题 I would like a bit of clarification about why each class ( or nearly each class ) in VBA (when you scroll through Object Browser) has an Application property. MSDN says When used without an object qualifier, this property returns an Application object that represents the Microsoft Excel application. When used with an object qualifier, this property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to

Why does every class in VBA have an Application property?

拟墨画扇 提交于 2019-12-01 18:00:06
I would like a bit of clarification about why each class ( or nearly each class ) in VBA (when you scroll through Object Browser) has an Application property. MSDN says When used without an object qualifier, this property returns an Application object that represents the Microsoft Excel application. When used with an object qualifier, this property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only. The first sentence is pretty clear. Your hosting

Is there OLE Automation in Java?

风格不统一 提交于 2019-12-01 16:29:53
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 :) Perception You can use JACOB . But there will be some pain involved as it's not documented very well and the performance is not the best. It can also be hard to get it running correctly for you environment depending on which version of Windows you are targetting. I would definitely not use it if you are building a scalable web application. Another option would be Apache POI

Is there OLE Automation in Java?

半城伤御伤魂 提交于 2019-12-01 15:26:49
问题 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 :) 回答1: You can use JACOB. But there will be some pain involved as it's not documented very well and the performance is not the best. It can also be hard to get it running correctly for you environment depending on which version of Windows you are targetting. I would definitely

how to use the TWebbrowser on a diffent cache?

Deadly 提交于 2019-12-01 12:57:25
I want to build an Internet Browser just like any other web browser or Internet Explorer except that each window should use a unique name for cache. Any ideas? Or any third party components? I would recommend that you ditch TWebBrowser, and find out if TEmbeddedWB (alternative IE/shelldocview wrapper ) provides you with the ability to specify a different cache per instance. if not, then I recommend you ditch IE completely, and look for a webkit based browser control for Delphi, such as the Chromium-for-delphi wrappers. 来源: https://stackoverflow.com/questions/4980359/how-to-use-the-twebbrowser

how to use the TWebbrowser on a diffent cache?

不想你离开。 提交于 2019-12-01 10:20:40
问题 I want to build an Internet Browser just like any other web browser or Internet Explorer except that each window should use a unique name for cache. Any ideas? Or any third party components? 回答1: I would recommend that you ditch TWebBrowser, and find out if TEmbeddedWB (alternative IE/shelldocview wrapper ) provides you with the ability to specify a different cache per instance. if not, then I recommend you ditch IE completely, and look for a webkit based browser control for Delphi, such as

Word Document.SaveAs ignores encoding, when calling through OLE, from Ruby or VBS

六眼飞鱼酱① 提交于 2019-12-01 08:46:23
I have a script, VBS or Ruby, that saves a Word document as 'Filtered HTML', but the encoding parameter is ignored. The HTML file is always encoded in Windows-1252. I'm using Word 2007 SP3 on Windows 7 SP1. Ruby Example: require 'win32ole' word = WIN32OLE.new('Word.Application') word.visible = false word_document = word.documents.open('C:\whatever.doc') word_document.saveas({'FileName' => 'C:\whatever.html', 'FileFormat' => 10, 'Encoding' => 65001}) word_document.close() word.quit VBS Example: Option Explicit Dim MyWord Dim MyDoc Set MyWord = CreateObject("Word.Application") MyWord.Visible =

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

柔情痞子 提交于 2019-12-01 08:44:46
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 this in an appropriate fashion? Two recent examples (I recon the code is less important): creating an accdb-Database from Excel with an Access.Application and populating it by running rather complex SQL-queries on large amount of data. Public Function createDB(pathDB As String, pathSQL As String) As String Dim dbs As DAO.Database Dim sql As String