ole

Somthing confused with ole drag and drop implementation [closed]

元气小坏坏 提交于 2020-01-05 08:23:33
问题 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 . I wish to finish a little demo to implement OLE drag and drop(drag a file from my application to windows explorer). But here comes a problem:DoDragDrop return DRAGDROP_S_DROP which means the ole drag and drop operation has successfully done,but also get DROPEFFECT_NONE which means drop target cannot accept the

How Do I Bypass MS Access Startup When Using OLE?

隐身守侯 提交于 2020-01-05 05:20:08
问题 I am trying to do an automated xml export from an access database using C# and OLE. Everything is working perfectly except that the startup form is shown and won't close without user intervention. Here's what I am doing so far: objAccess = CreateObject("Access.Application"); objAccess.OpenCurrentDatabase("C:\\MYDB.mdb", true); //true = open in exclusive mode objAccess.ExportXML(0, "TestTable", "c:\\test.xml"); objAccess.CloseCurrentDatabase(); objAccess.Quit(); 回答1: As far as I know the only

Insert raw file data into BLOB (“OLE Object”) field of Access table using ADO

[亡魂溺海] 提交于 2020-01-04 12:48:12
问题 I am trying to insert a file into MS Access database, into a field of OLE Object type. I am using C++ and ADO . Currently I get error Invalid pointer error . I think that my problem is mishandling variants since this is the first time I use them. I am learning from this code example but have problem understanding how to insert file from disk into variant . They read it from database, and copied it into new record so the part where I read file from disk and then insert it into variant is

Can't replace the footer text in a word application through Delphi

瘦欲@ 提交于 2020-01-04 11:11:34
问题 I am trying to replace text in a footer, I am using the following code through which i can replace the normal content (body) but not the content in the footer/header myWinWordApp := CreateOLEObject('Word.Application'); myWinWordApp.visible := true; myWinWordApp.documents.open('c:\ole.doc'); myWinWordApp.Selection.Find.Text := 'oo'; myWinWordApp.selection.Find.Replacement.Text := 'aa'; myWinWordApp.Selection.Find.Execute(Replace := 2); any help is highly appreciated. Thanks in advance 回答1:

Opening a Word document with .doc extension with Eclipse SWT OleClientSite in Java

两盒软妹~` 提交于 2020-01-04 06:35:37
问题 I'm working on a program that uses the Eclipse SWT OleClientSite (in Windows 7) to open a Word document inside an RCP application. For the past two years, this program has called the following constructor: OleClientSite clientSite = new OleClientSite(oleFrame, SWT.NULL, new File(documentFileName)); Since the latest update to SWT, this constructor now throws an exception when attempting to open Word documents with a ".doc" extension. Word documents with a ".docx" extension are still

Extract embedded Excel worksheet data from Word

梦想的初衷 提交于 2020-01-04 06:07:53
问题 I have a batch of Word documents that have embedded Excel worksheets. Users have been entering data in the Excel sheet by double clicking the image of the sheet and opening an embedded Excel object. I need to get to the user entered data. Below is WORD VBA with a reference to the Microsoft Excel 15 library. (The Word and Excel object where created under Office 2010.) I can find the OLE object but I can't do anything with it. In the code below I tried to assign the object to a Worksheet object

how to reload saved “Embed Source” clipboard data?

匆匆过客 提交于 2020-01-03 06:05:07
问题 some other windows application I'm trying to interface with, saves a dump of the clipboard to file. To be more precise, it looks for the "Embed Source" format in the clipboard, and if found saves it to file. "Embed Source" is some OLE based format, which is created, for example, when you copy an image from paintbrush. Is there a way to reload the content of those files back to the clipboard, so I could paste them back in say, paintbrush or any office program? In c# I've tried System.Windows

微软BI 之SSIS 系列 - 通过 OLE DB 连接访问 Excel 2013 以及对不同 Sheet 页的数据处理

谁说胖子不能爱 提交于 2020-01-02 05:05:03
文章更新历史 2014年9月7日 - 加入了部分更新内容,在文章最后提到了关于不同 Office Excel 版本间的连接问题。 开篇介绍 这篇文章主要总结在 SSIS 中访问和处理 Excel 数据的四个方面的主题内容 (都是处理以 .xlsx 结尾的 Excel 文件) - 如何在 SSIS 中集成对 Microsoft Excel 的访问支持以及注意事项。 如何在 SSIS 中连接和访问 Microsoft Excel 文件以及注意事项。 如何加载不同 Sheet 页的数据到同一个表中。 如何加载不同 Sheet 页的数据到不同的表中。 连接和处理 Microsoft Excel 文件的方式有很多种,包括使用 C#.NET 编程的形式加载处理数据,但本文只考虑在 SSIS 中如何加载 Microsoft Excel 文件中的数据。 在以前的 Microsoft Excel 文件版本中,使用 SQL Server 2008 R2 - BIDS 开发工具很容易处理,因为以前的版本是支持以 .xls 结尾的 Excel 文件,比如说 Excel 2003。Microsoft Office 版本升级之后,他们开始采用基于OpenXML的新的文件类型,也就是以 .xlsx 结尾的 Excel 文件类型。但是在 BIDS 中包括现在的 SQL Server 2012 - SSDT

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

♀尐吖头ヾ 提交于 2020-01-01 11:48:09
问题 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

A copy of Excel Addin is created in My Documents after saving

徘徊边缘 提交于 2019-12-31 07:41:39
问题 I have an application (running in IBM Notes, using Lotusscript etc.) that create a new Excel object via OLE automation. In my app I create a new Workbook and saving it to a temporary folder (I am saving it as Excel Worksheet w/o macros -> type 52) so that the resuting file is sth. like that: tmp_abc1234.xlsx Then I open the file in Excel programmatically. I have an Excel Addin (filename is "Teamoffice.xlam" loaded where some macros reside I will trigger in the custom save actionbar button. In