ole

Inno Setup: Iterate through array of type Variant (from OleObject)

*爱你&永不变心* 提交于 2019-11-28 06:25:34
问题 I'm trying to read and write to the IIS 6 metabase using Inno Setup. I can't figure out how to access arrays though. IIS := CreateOleObject('IISNamespace'); Compr := IIS.GetObject('IIsCompressionScheme', 'localhost/W3SVC/Filters/Compression/deflate'); Arr := Compr.HcScriptFileExtensions; { ... [code to iterate and add items] here ... } Compr.SetInfo(); The metabase editor calls the object type I'm trying to access a "multi-string". VarType(Arr) yields 0x200C as type (see http://www.jrsoftware

Retrieve Outlook logged-in user SMTP address after connecting through OLE

非 Y 不嫁゛ 提交于 2019-11-28 02:22:34
Exchange Web Services has a ResolveNames() function that I can use to retrieve (among other things) the primary SMTP address for the Active Directory user that logged on to Exchange Server through EWS. I am now programming through OLE against Outlook and would like the same functionality. I have been browsing through the Outlook object model but can't find an appropriate object or method. Does anyone know of an object/method that I can use to get the primary SMTP address? Below is the current Delphi code that I use to connect to Outlook. For the default user logging in (AUserSMTP='') it

Excel unable to insert more than 255 chars?

[亡魂溺海] 提交于 2019-11-28 02:05:25
I am using OLE DB driver to insert more than 255 characters into an Excel sheet, but I get the error: Exception Details: System.Data.OleDb.OleDbException: The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. Seems from this thread that it's an Excel limitation. Even the Microsoft site seems to say so here . So does this mean I can't programmatically, but I can manually? Because I can enter more than 255 characters when I manually type them in Excel. So is it a Microsoft.ACE.OLEDB.12.0(AccessDatabaseEngine.exe) driver limitation? The link

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

ⅰ亾dé卋堺 提交于 2019-11-27 21:01:34
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Can I find some open source library for accessing (reading only is ok) OLE Storage like doc or xls files in c#? 回答1: You can use my open source (MPL) library OpenMCDF for a 100% .net implementation of COM structured storage. A sample COM structured storage file viewer is also available as a usage sample of the

How do I script an OLE component using Python?

主宰稳场 提交于 2019-11-27 18:11:01
问题 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 those components, and then start pressing 'tab' in IPython? 回答1: You can find an example on this website. OLE and is related to COM and ActiveX so you should look out for those terms. Do you have access this book from O'Reilly - Python Programming on

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

余生长醉 提交于 2019-11-27 16:31:52
问题 I am looking for a code snippet that does just this, preferably in C# or even Perl. I hope this not a big task ;) 回答1: The following will open C:\presentation1.ppt and save the slides as C:\Presentation1\slide1.jpg etc. If you need to get the interop assembly, it is available under 'Tools' in the Office install program, or you can download it from here (office 2003). You should be able to find the links for other versions from there if you have a newer version of office. using Microsoft

Can the .NET 4 Task Parallel Library use COM objects?

☆樱花仙子☆ 提交于 2019-11-27 14:00:00
问题 This is an "is this possible, and if so can you give me a quick example because I can't find one online?" kind of question. I have a number of completely separate (i.e. "embarrassingly parallel") processes that I want to run in parallel using the Task Parallel library in .NET Framework 4 using C#. Some of these processes require the use of software that can be accessed via COM/OLE automation. Specifically, there is a Parallel.Foreach() loop that divides up the tasks from a list of items,

ABAP ole操作1

蹲街弑〆低调 提交于 2019-11-27 10:11:48
转自: https://www.cnblogs.com/jxzhu/p/8708686.html OLE整理: 1.定义,分别对应EXCEL,workbook(工作簿),sheet(页),单元格 DATA: EXCEL_OBJ TYPE OLE2_OBJECT, BOOK_OBJ TYPE OLE2_OBJECT, SHEET_OBJ TYPE OLE2_OBJECT, CELL_OBJ TYPE OLE2_OBJECT. 2.方法说明: CREATE OBJECT name_obj 'app'."创建APP应用类的一个对象obj_name实例 SET PROPERTY OF name_obj 'XXX' = f ."设置对象NAME_obj属性xxx为值f GET PROPERTY OF name_obj 'xxx' = f ."将name_obj的属性xxx的值获取赋给f CALL METHOD OF name_obj 'xxx' = f "由f来接收返回值 EXPORTING #1 = f1. "调用name_obj的方法xxx 传入参数f1…fn FREE OBJECT name_obj . "释放. 3.创建对象 CREATE OBJECT EXCEL_OBJ 'EXCEL.APPLICATION'. SET PROPERTY OF EXCEL_OBJ 'VISIBLE'

How to insert an image into an Access OLE field via .NET

落花浮王杯 提交于 2019-11-27 09:35:58
I have an Access .mdb database and I want to insert an image from an application developed in visual C# 2010. Pictures are stored in the database in the field of OLE-object. After adding images directly in Access they are stored in the format of an Bitmap Image. These pictures can be opened in Access with a double-click. I have the following code: OdbcConnection Connection = new OdbcConnection(); ... sql = "INSERT INTO film (poster) VALUES (" ' " + Image.FromFile(textBox8.Text) + " ' ");"; //texbox are stored the picture name OdbcCommand Command = new OdbcCommand(sql, Connection); Command

VBScript and multilevel OLE?

梦想与她 提交于 2019-11-27 06:19:31
问题 I have made a vbscript to target some computers and do wmi queries on them, and my boss wants this data to be put inside a document. The problem is that this document is a Microsoft Word document with embedded excel objects inside it. Now I have searched wide and far on google on any way to target and manipulate an object inside and object with OLE, but I seem to be getting nowhere. So my question to you is if someone has some code for this I could look over or maybe a tutorial, and quite