ole

Parse MathType MTEF data from OLE binary string

こ雲淡風輕ζ 提交于 2019-12-04 10:19:42
There is a need to convert the MathType equations in the MS-WORD 2003 or below to MathML in order to render nicely on the the web. The MathType's built in function "Publish to MathPage" can do the job very nicely, but I want to integrate the equation conversion process in my C# application. Because I couldn't find any API references that the MathPage export interface is provided by the MathType SDK, I need to figure out a way to do the individual equation conversion by myself. The current procedure is to convert the MS-WORD 2003 or below documents into the Open XML format(docx). After the docx

How can I determine the default Outlook account?

淺唱寂寞╮ 提交于 2019-12-04 06:39:53
问题 I'm logging into Outlook 2007 from my application and can enumerate the Accounts.Item[i] objects to look at Account settings. What I'm unable to find is: How can I determine (using the Outlook 2007 object model) which one of these is the default Outlook account? There is no such thing as Store.StoreAccount as suggested here for Redemption (which I don't use). This SO post does not have an answer 回答1: Firstly, there are 3 types of accounts - store, mail and address book. Which default account

Outlook Object Model - Detecting Mailboxes

不打扰是莪最后的温柔 提交于 2019-12-04 06:15:59
问题 I have a Delphi 2006 BDS application with the following code to iterate outlook mailboxes and then the Inbox and Sent Items within the mailbox: try nameSpace := outlook.GetNameSpace('MAPI'); // load the mailboxes mailbox := NameSpace.Folders; for i := 1 to mailbox.Count do if Pos('MAILBOX', UpperCase(mailbox.Item[i].Name)) > 0 then begin rootNode := trvwOutlookFolders.Items.AddChildObject(nil, mailbox.Item[i].Name, nil); for j := 1 to mailbox.Item[i].Folders.Count do if (Pos('INBOX',

SSAS 项目部署失败的问题

扶醉桌前 提交于 2019-12-04 05:58:54
在创建SSAS项目过程中,创建数据源、数据源视图、多维数据集、纬度等一切都没有问题。但是在“进程”这一步的时候,发现总是报错,提示如下。 OLE DB 错误: OLE DB 或 ODBC 错误 : 用户 'XXXXX\XXXXXXXXX$' 登录失败。; 28000。 搜索半天没有什么满意的回答,然后思索是不是ssas的服务没有开,转到服务后,突然发现ssas的服务帐号好像在数据库的安全性没有,如下图。 然后去数据库添加这个帐号为本地帐号, 赋予 db_owner、public权限。 然后点击重新处理,就可以了 接着下一步 部属也是OK的。 来源: https://www.cnblogs.com/Impulse/p/11834345.html

Embed SWT Composite into C# application

萝らか妹 提交于 2019-12-03 20:57:00
I've got a Java application that uses SWT as its widget toolkit. I've also got a Windows C# application. I'd like a way to draw an SWT Composite into this C# application. I can think of two ways to do this: Handles: Since SWT is based on the native windowing toolkit, it seems like there should be a way to create a Composite in the C# application, pass the native pointer to the Java application, and then control the Composite from there. OLE: Since SWT can definitely consume OLE components, maybe there's also a way for it to present itself as an OLE component? Anybody have any tips on how I can

How to do a simple mail merge in OpenOffice

大憨熊 提交于 2019-12-03 17:31:07
I need to do a simple mail merge in OpenOffice using C++, VBScript, VB.Net or C# via OLE or native API. Are there any good examples available? I haven't come up with a solution I'm really happy with but here are some notes: Q. What is the OO API for mail merge? A. http://api.openoffice.org/docs/common/ref/com/sun/star/text/MailMerge.html Q. What support groups? A. http://user.services.openoffice.org/en/forum/viewforum.php?f=20 Q. Sample code? A. http://user.services.openoffice.org/en/forum/viewtopic.php?f=20&t=946&p=3778&hilit=mail+merge#p3778 http://user.services.openoffice.org/en/forum

Set OLE Request Timeout from C++

戏子无情 提交于 2019-12-03 14:24:06
I am instantiating a local COM server using CoCreateInstance. Sometimes the application providing the server takes a long time to start. When this happens, Windows pops a dialog box like this: Server Busy The action cannot be completed because the other program is busy. Choose 'Switch To' to activate the busy program and correct the problem. [Switch To...] [Retry] [Cancel] I have found mention of a Visual Basic property on the Application object, OleRequestPendingTimeout, that can be used to control the time before this dialog comes up. I can't find any good documentation on this or an

OLe DB provider “SQLNCLI” for linked server was unable to begin a distributed transaction

匿名 (未验证) 提交于 2019-12-03 08:44:33
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to call a stored procedure in SQL Server 2008 and store the fetched data into a local temp table. When I try to run it, I receive the following error: The operation could not be completed because OLe DB provider "SQLNCLI" for linked server was unable to begin a distributed transaction My code is as follows : create table #temp( col1 as int, col2 as varchar(50) ) insert into #temp exec [192.168.0.9].[db1].[dbo].[tablename] @usr_id=3 回答1: You can prevent using distributed transactions for the linked server by setting server option

Communicating with the OLE Server or ActiveX Control

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: MS Access 2010, Win 7 on a regular form I didn't intentionally place any ActiveX or OLE things.. not even sure what they are. But anyways, whenever I put something in the code of a particular form, it says "The Expression XXXXX you entered as the event property setting produced the following error: A problem occured while MyDB was communicating with the OLE server or Active X Control Huh? No matter what I put in the form's code, this happens. I had an empty Form_Current() ONLY which still tripped this. There's a lot of formatting and work