ms-office

Where can I find Microsoft.Office.Interop.Word.dll (2010)?

不羁岁月 提交于 2019-12-05 01:58:45
I got the sources of a .NET project that I am trying to compile. Although, the project uses the reference (namespace) Microsoft.Office.Interop.Word from Office 2010 that I cannot find anywhere. I was able to download the file microsoft.office.interop.word.dll but apparently the one from Office 2007 since it still doesn't compile because the project uses the function Document.SaveAs2 (which is from Office 2010 library). I have Office 2007 on my computer and Visual Studio 2012 Express for Desktop. Could you please explain me how this works? How come was I able to download the dll but I cannot

How to connect to outlook 2010 while its running in c#?

无人久伴 提交于 2019-12-05 01:39:29
What I am trying to do is add an "Email To..." button to a winform client that opens a new outlook mail window and attaches a file so the user can forward it. I can get the outlook integration working just fine if outlook is not already running. This is a C# .NET 4.0 winforms app, using the Outlook 14.0 interop library, against Outlook 2010 32 bit running on windows 7 64 bit machine. I have the app already compiled to x86 for other reasons so I doubt its a 32/64 bit issue. Here is my code: // Connect to outlook and create a new mail item var app = new Outlook.Application(); var ns = app

A Way to Automate the “Compile” Function of MS Office's VBA Code

旧城冷巷雨未停 提交于 2019-12-05 01:12:04
Typically when I make a change to a VBA file I like to compile it to ensure my changes didn't break anything: But compiling on different machines with different versions of the office will result in different results, sometimes it will compile, sometimes not... Things like this can happen, or maybe this . Turns out in each version of excel all sorts of things can be different (not just references though that is the most common issue). How would I automate the compiling of my VBA code? I would like to be able to do this in multiple products such as Excel, PowerPoint, and Word, I would like to

how to check MS office version installed on the machines

試著忘記壹切 提交于 2019-12-05 00:53:21
问题 I am working on a console app which perform some operation on registry. I am not using any interop assembly for office but i need to to know office version. How to determine which version of MS office is installed on the machine using C#. 回答1: Search in (using the Registry class) HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths or HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths Version numbers are 7.0 -97 8.0 - 98 9.0 -2000 10.0 -2002 11.0 -2003 12

What Component IDs should I search for to detect whether the Office 2010 PIA's are Installed

一个人想着一个人 提交于 2019-12-05 00:31:30
I'm creating a plug-in for Office 2010 and need to detect on install whether the Office 2010 PIA's are installed. I have done this for 2003 and 2007 but cannot find the Component ID's for 2010 does anyone know what they are? thanks, Ed Do a search for the component ID for the PIA (primary interop assembly) applicable to the component of office you need from the list below: {EA7564AC-C67D-4868-BE5C-26E4FC2223FF} Excel {4153F732-D670-4E44-8AB7-500F2B576BDA} InfoPath {1D844339-3DAE-413E-BC13-62D6A52816B2} Outlook {EECBA6B8-3A62-44AD-99EB-8666265466F9} PowerPoint {3EA123B5-6316-452E-9D51

VSTO custom taskpane on multi DPI system shows content twice

若如初见. 提交于 2019-12-05 00:11:53
I am building an office addin using VSTO. On systems with multiple monitors with different DPI settings, the contents of my custom task pane is drawn twice on the monitor with the higher DPI settings: Only the smaller version is actually responding to user input. The larger version seems to be simply an upscaled image. I have tried playing around with diverse DPI related settings like: AutoScaleMode on my user control. I tried all options, no change. Setting the process to DPI aware - or not - using SetProcessDpiAwareness . I tried all options, no change. Using an app.manifest and setting

How to automate find/replace code in VBA modules in MS Office 2013?

血红的双手。 提交于 2019-12-04 22:00:01
I have a large number of Excel Templates that contain VBA code that need to be updated. The Find method of the code-module object only returns true/false, not the location of the found string. Is there any way to automate the find-and-replace procedure? ChipsLetten Add this code to a new macro-enabled workbook. Set the FIND_WHAT and REPLACE_WITH constants, open the other workbooks and run the code. The original code comes from Charles Pearson's site WARNING: Only basic testing has been done! Option Explicit Sub ReplaceTextInCodeModules() ' Must add a reference to "Microsoft Visual Basic For

Clear Microsoft Office Add-Ins cache

爱⌒轻易说出口 提交于 2019-12-04 20:41:00
I wrote some code in an add-in for Microsoft PowerPoint 2007. I executed it. It said there was a problem. With help from a fellow member here , I rectified the problem. I compiled the new code and ran it. It still considers the old code and ignores the new one and still throws the same problem. The two versions of code are radically different in that they do not share the variables that the problem reports, thus my reason for being sure that the problem isn't in the code now. Clearly, MS Office is retaining an older version of the binaries somewhere in some cache. How do I clear that and allow

'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine though Microsoft.ACE.OLEDB.12.0 is installed

狂风中的少年 提交于 2019-12-04 19:52:04
I get the following exception 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine though I have installed 'Microsoft.ACE.OLEDB.12.0' In my local dev machine I have also office 2010 What is wrong? If you system is 64 bit,Then you have to change your pool settings to allow 32 bit applications that is OLEDB. ,then this link might help. http://help.webcontrolcenter.com/KB/a1114/how-to-enable-32-bit-application-pool-iis-7-dedicatedvps.aspx Ramakrishna.p refer posts it was explained you need to install office drivers first 'Microsoft.ACE.OLEDB.12.0' provider is not registered

Automating MS Word in Server 2012 R2

穿精又带淫゛_ 提交于 2019-12-04 19:34:11
问题 Firstly, please don't reply with the generic advice not to automate Word on a server or a link to the MS web page on "how to automate word on a server if you really must". I am aware of this. I have a process which runs as a Windows service and uses .Net OLE interop to automate Office (mostly just Open and SaveAs). This code has worked reliably for 8 years on literally hundreds of servers using many combinations of Windows and Office versions, both 32 and 64 bit, so I am happy that the