ole

Converting an OLE Image Object from MS Access for use in .NET

送分小仙女□ 提交于 2019-11-29 13:47:48
I'm working on redeveloping an Access based system into c#.net, however when MS went from office 2003 to office 2007 they removed the picture editor within access - which meant that previously stored pictures would no longer display in the system. The guys at the company did a hack that basically saved the images with VBA using excel in the background (I can get more information if you need it) but basically it meant the access image controls could still be used (Object bound frames). However, I now have the problem of trying to display these in .NET applications, and after countless days of

COM surrogate for third party component

会有一股神秘感。 提交于 2019-11-29 08:24:51
问题 I'm writing a small DLL component that needs to access two third party components to combine data, one of which is 32 bit only and the other is 64 bit only. Both are registered with a TypeLib and are Automation compatible, so marshalling should not be an issue. If I understood the documentation correctly, then there is no way to force loading in a surrogate unless the component also has an AppID and the DllSurrogate key; since both are third party components, I'm somewhat reluctant to modify

MSSQL常见问题集锦

霸气de小男生 提交于 2019-11-29 06:23:42
一、拒绝了对对象 'sp_OACreate' (数据库 'mssqlsystemresource',架构 'sys')的 EXECUTE 权限 解决方法: 1、登录管理员帐号,默认是sa。 2、找到目前使用登录名,打开属性,在选择页中选中用户映射 3、勾选master复选框,并赋予访问master的dbo.owner角色权限 OK!到这里就解决了这个问题! 二、SQL Server 阻止了对组件 'Ole Automation Procedures' 的 过程'sys.sp_OACreate' 的访问 解决方法: --开启 Ole Automation Procedures sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'Ole Automation Procedures', 1; GO RECONFIGURE; GO EXEC sp_configure 'Ole Automation Procedures'; GO --关闭 Ole Automation Procedures sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'Ole Automation Procedures', 1;

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

。_饼干妹妹 提交于 2019-11-29 02:12:15
I am looking for a code snippet that does just this, preferably in C# or even Perl. I hope this not a big task ;) Dolphin 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.Office.Core; using PowerPoint = Microsoft.Office.Interop.PowerPoint; namespace PPInterop { class Program

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

吃可爱长大的小学妹 提交于 2019-11-28 21:39:42
Can I find some open source library for accessing (reading only is ok) OLE Storage like doc or xls files in c#? 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 library. An excellent article describes the usage. COM structured storage from .NET OleDbConnection can handle structured storage as long as the appropriate OLE DB driver is installed on the machine your app is running on. Excel: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\myFolder

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

我只是一个虾纸丫 提交于 2019-11-28 21:37:04
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, basically calling a different function inside the Parallel.Foreach to handle the processing (so some of

Implementing drag-drop from Chrome on my .NET Windows form

删除回忆录丶 提交于 2019-11-28 19:32:58
Google Chrome has a handy feature where I can click a download link and drag it into a Windows Explorer window, and then drop. After dropping, Chrome then downloads the file and it appears where I dropped it. I would like to be able to drop from Google Chrome into my application, but it seems it isn't so simple. I have a DataGridView called gridFiles, and the following code: Private Sub gridFiles_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles gridFiles.DragDrop If e.Data.GetDataPresent(DataFormats.FileDrop) Then Dim DroppedFiles() As String = e.Data

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

邮差的信 提交于 2019-11-28 13:05:25
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 field, but to a dlookup function. I get the correct id into a controll via a query and a combo box - so

VBScript and multilevel OLE?

ぃ、小莉子 提交于 2019-11-28 11:37:20
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 possible even tell me if it is even possible? Some notes based on the chart being an embedded Excel object

Why is this C# COM class usable from VBScript but not JScript?

╄→гoц情女王★ 提交于 2019-11-28 07:49:00
问题 Consider the automation-compatible COM library in C#, given below. It follows a common COM pattern of having a visible factory coclass FooFactory implementing ICreateFoos which creates an object of type IFoo. FooFactory is the only coclass in the type library. (The factory pattern is particularly useful with COM, as it does not allow for parameterized constructors). In the code below, I'm finding that I cannot access the returned IFoo interface from jscript unless I make the FooImpl class