ole

how to create an ole object from a file - Ms-access

主宰稳场 提交于 2019-12-17 20:33:59
问题 I have a table with an embedded picture(OLE) coulmn. I Want to be able to insert a new record via a form with a browse option. Anyway, I have a file name, And I need to turn it into an ole object and insert it into the form. how do I do that in VBA? To clarify - I need to turn a file name, into an ole object with that file, and than insert it into the table. Thanks, Fingerman. EDIT: Ok, as pointed out by @HansUp I need to explain. In my form, I have a bound OLE object that is not bound to a

Why Delphi Excel OLE functions does not correspond to the specificiation?

我只是一个虾纸丫 提交于 2019-12-14 03:32:21
问题 I am trying to copy-paste from one Excel into another Excel programmatically from the Delphi code, the extded question and the source code is in Excel Copy-Paste from Delphi (OLE) with all the formatting? It is possible to copy-paste the column-width and data&formatting in Excel applications following https://www.extendoffice.com/documents/excel/1867-excel-copy-column-width.html using 2 consecutive operations from the Excel applications: 1) Paste Special... - Other Paste Options - Column

CreateOleObject opened workbook won't run macro containing Application.Run “Solver.xlam!…” causes error 400

醉酒当歌 提交于 2019-12-14 02:33:24
问题 This problem has a relationship to a previous post I saw (not my question), which was closed: Excecute Excel vba code through Delphi But I believe I have debugged my issue to a more general OLE/VBA issue (read further below). I can reproduce in Delphi and also in VBS. My Delphi code is similar to what is presented there - my code is: uses ComObj, ActiveX; // and a long list of others not relevant var Excel : OleVariant; WkSheet : OleVariant; ... begin ... CoInitialize(nil); // Open

Open SAS program in new instance

醉酒当歌 提交于 2019-12-13 16:22:22
问题 I'm trying to figure out a way to open SAS programs in new instances of the Enhanced Editor by default on click. The question has been asked before but no luck. This paper describes the way a program is opened with the Enhanced Editor. The full command is : "C:\PROGRA~1\SASHome\SASFOU~1\9.3\core\sasexe\SASOACT.EXE" action=Open datatype=SASFile filename="%1" progid=SAS.Application.903 The author explains that: The sasoact.exe program is used to launch an OLE automation session of SAS.

How to interact with another programs with OLE Automation in C#?

旧街凉风 提交于 2019-12-13 14:41:09
问题 I create an application with C# that can read item data from SQL Server and push it to the scale system named "SLP-V Ishida Retail Scales". They have an interface "SLP-V Automation Interface" that allows user programs to interact with their systems. This is the note from help page in SLP-V : The automation interface (also known as the "COM (common object model) interface") provides a method for user programs to access SLP-V functions. The most common application for this is the use of VB

Hide border of window, if i know a handle of this window

ぐ巨炮叔叔 提交于 2019-12-13 08:47:07
问题 I have already OLE Embedded object Excel Chart. And, when I create this object, i have some problem in project, when I'm resizing window. Using Spy++ I see two process: Excel 7 and Excel 9. Excel 9 contain "trash" in right part, and when I resizing window I can see undefined behaviour. On the following picture you can see a border, which I want to hide. How I can hide this border, if I known handle of window? 回答1: You might try using SetWindowLong(), but I don't know if the effect is going to

EOleException on accessing message body

只谈情不闲聊 提交于 2019-12-13 07:24:28
问题 A Windows service when trying to access the .Body property of a MSMQ message object throws an EOleException - but only when the Xml document contained in this message has an empty list node. The EOleException message complains about insufficient memory (exception code -2147024882). Since the exception only occurs with the smallest possible Xml document, memory cannot be the real issue. The next thing that comes to mind is a problem with access rights but then again all "good" messages (as

Does DSOFile.OleDocumentProperties.Save modify file?

牧云@^-^@ 提交于 2019-12-13 04:48:01
问题 DSOFile.OleDocumentProperties.Save modifies metadata associated to a file on NTFS. Does it modify the file itself, meaning that the checksum will change? Or does it only modify some NTFS metadata about the file, but the checksum will remain the same? More about DSOFile: KB, Technet Credit: It was actually a self-interrogation by Ilmo within this question. 回答1: It depends on the file format and the file system where the file is located. If the file is an OLE format, the file itself will be

TWebBrowser - Trying to fix the “Invalid floating point operation” error

…衆ロ難τιáo~ 提交于 2019-12-13 01:29:35
问题 The TWebBrowser component has an error as described here [IE9] 'Floating point division by zero' occurs with WebBrowser. The solution is to call a procedure that will disable all division by zero exceptions. I am trying to fix this problem without having to call this procedure. So far, the best idea I had was to disable TWebBrowser scroll bars and try to simulate the same functionality using a TScrollBar . So far, it is working but that is the question: How can I synchronize the navigation in

Excel OLE - .NET COM AddIn behaves differently when Excel is embedded in an application

烂漫一生 提交于 2019-12-13 00:24:55
问题 I have a .NET (C#) addin that uses a COM Shim dll to load itself into Excel. The addin works fine without any problem when Excel is run normally. The addin displays its own custom toolbar in Excel that is used to execute different commands. When I embed Excel into another application (e.g. DSOFramer etc), the addin starts behaving strangely. It seems that if I disable a button on its toolbar then it does not get enabled again after setting the Visible property. Also, I get a bunch of "Object