ms-office

How can I determine if MS Office 2007 SP2 is installed?

 ̄綄美尐妖づ 提交于 2019-12-07 04:45:14
问题 In am using MS Word via OLE to produce documents from my application. I want to give the users that have MS Office 2007 SP2 installed the ability to save the documents as PDF. This is only available in SP2, and the option should be hidden if the service pack is not installed (and of course also for users of previous versions of MS Office). Is this information available anywhere, like in the registry or any configuration file? 回答1: Couldn't find anything helpful for you but here is something

“Value does not fall within the expected range.” error while exporting excel to pdf

女生的网名这么多〃 提交于 2019-12-07 03:21:13
问题 I am getting the above error while trying to export the excel 2007(xlsx) format workbook to pdf. The workbook contains only one sheet and I have Ms Office 2007 installed on my windows 7 PC. Here is the stacktrace at Microsoft.Office.Interop.Excel.WorkbookClass.ExportAsFixedFormat(XlFixedFormatType Type, Object Filename, Object Quality, Object IncludeDocProperties, Object IgnorePrintAreas, Object From, Object To, Object OpenAfterPublish, Object FixedFormatExtClassPtr) at schoolwisereportprint

Android - microsoft office viewer in my app

旧巷老猫 提交于 2019-12-07 02:50:22
问题 What I have / tried: I am developing an android application. In which I have to add the viewer for the microsoft office documents( doc, docx, ppt, pptx, xls, xlsx ) to the users. So I have searched in the internet. I got some reference about the apachi POI and doc4j for android. So I tried to implement that inside my app. But I got lot of issues and also not getting any API references for that. So I have posted the question in the stackoverflow. But I didn't get any solutions for that. So I

programmatically comparing word documents

微笑、不失礼 提交于 2019-12-07 01:55:32
问题 I need to compare two office documents, in this case two word documents and provide a difference, which is somewhat similar to what is show in SVN. Not to that extent, but at least be able to highlight the differences. I tried using the office COM dll and got this far.. object fileToOpen = (object)@"D:\doc1.docx"; string fileToCompare = @"D:\doc2.docx"; WRD.Application WA = new WRD.Application(); Document wordDoc = null; wordDoc = WA.Documents.Open(ref fileToOpen, Type.Missing, Type.Missing,

PowerPoint 2007 - Set language on tables, charts etc that contains text

一笑奈何 提交于 2019-12-07 00:54:23
问题 So I've got this macro that basically scans each slide in PowerPoint and sets the specified language. Works great. Howerver, it skips containers that aren't text boxes. I'd like it to apply the language on tables, smartart, charts etc. Basically anything that may contain text. Is this even possible? This is the current code: Public Sub changeLanguage() On Error Resume Next 'lang = "English" lang = "Norwegian" 'Determine language selected If lang = "English" Then lang = msoLanguageIDEnglishUK

Are there any alternatives to using Apache POI Java for Microsoft Office?

寵の児 提交于 2019-12-07 00:53:41
问题 I discovered Apache POI for doing a lot with MS Office programmatically in Java, but its documentation leaves me wanting, as well as a few other things. Does a better alternative exist? I thought to myself that OpenOffice.org might have something, but cannot find any concise site that would have a Library that would allow you to open and store Word, Powerpoint, Excel, or other MS Office applications through Java. Do any better alternatives exist? 回答1: I think POI is the best among other

Word Add-in Get full Document text?

时光总嘲笑我的痴心妄想 提交于 2019-12-06 20:54:28
I'm writing an office-addin using the Yeoman Office generator , based on these instructions . The default add-in has a function which will get the text selected in your word document. I'm trying to modify the function to instead get the full-text of the document. My function code is as follows: function getDataFromDoc(){ Office.context.document.getFileAsync(Office.CoercionType.Text, function(result){ jQuery('#get-data-from-selection').click(getDataFromSelection); if (result.status === Office.AsyncResultStatus.Succeeded) { console.dir(result); app.showNotification('The selected text is:', '"' +

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

纵然是瞬间 提交于 2019-12-06 19:46:11
问题 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

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

无人久伴 提交于 2019-12-06 19:05:02
问题 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: //

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

假如想象 提交于 2019-12-06 18:52:46
问题 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 回答1: 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