ms-office

quick command or batch script to determine Windows and Office version

那年仲夏 提交于 2019-12-05 06:32:30
I need to do a software audit of more than 300 computers that are neither on the same network, or owned by the same company. Is there an command or small program (that can be run without installing) that I can email to the end-users to run that will output the MS Windows and MS Office versions? r3ap3r One possible way of obtaining the current Windows Version and Microsoft Office version is to query the system registry entries using command line. To get the windows version using System registry , use the following command: reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion" /v

Add controls to existing ribbon group in Office (VSTO)

最后都变了- 提交于 2019-12-05 06:25:26
I find numerous examples on how to add a new group to an existing ribbon, and this works just fine. What I cannot figure out is how I can add new controls to an existing group on an existing ribbon. Say I want to add my own command to the "Proofing" group on the "Review" tab. I'm developing this in VS2010 for Office2010, but I guess the same approach would work on Office 2007 as well. Any pointers or help is appreciated, or if it's not possible to do (without too much hacking) I can live with that as well. Unfortunately, this is not possible. You may only add controls to custom groups in

Android - microsoft office viewer in my app

牧云@^-^@ 提交于 2019-12-05 05:36:43
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 am deciding to add any other third part office viewer SDKs inside my app to view the microsoft-office

Why does the VBA IDE's Intellisense in Microsoft Word 2007 keep on changing the case of the name of a particular variable type?

不想你离开。 提交于 2019-12-05 05:22:30
This is the most bizarre question I've ever asked. I'm not even sure how to phrase it. I remember something like this happening way back in the VB6 IDE, but I've forgotten the fix. If this is the case, then this is a really old bug in the VB IDE. Here's the problem: I'm writing a simple MS Word macro when I accidently typed: Dim cell as Cell This activated the dreaded IDE bug. Now, no matter what I do; remove the module, edit it outside the IDE or whatever, the IDE's intellisense formats the variable type "Cell" as "cell" If I name a new variable: Dim tcell as Cell The IDE changes it to: Dim

What algorithm does Microsoft Office 2010 use for encryption?

限于喜欢 提交于 2019-12-05 05:12:40
Does it use the standard AES 128bit key for encryption? I've searched a lot on Google, but I still haven't found the algorithm is uses for encrypting. I'm encrypting a PowerPoint file. This technet article confirms that the defaults are AES 128-bit key, SHA1, CBC. Although there are Office 2010 settings to change how encryption is performed, when you encrypt Open XML Format files (.docx, .xslx, .pptx, and so on) the default values — AES (Advanced Encryption Standard), 128-bit key length, SHA1, and CBC (cipher block chaining) — provide strong encryption and should be fine for most organizations

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

北慕城南 提交于 2019-12-05 04:52:05
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 ElseIf lang = "Norwegian" Then lang = msoLanguageIDNorwegianBokmol End If 'Set default language in

How to export FlowDocument to DOC(x) or XLS

谁说我不能喝 提交于 2019-12-05 04:39:09
In my program I generate some reports in FlowDocument and display it with DocumentViewer control. Now I need to add more export opportunities. I use iTextSharp to export in PDF, and I can save to XPS natively. Can I save a document directly to any office formats, DOC or XLS. Or maybe someone knows of a good library for converting from PDF / XPS in DOC or XLS? I found a solution. As I can't export to Doc from WPF automatically, I reproduced my page layout with DocX Library . This is really awesome and simple library that don't required MSOffice installed to create Word 2007/2010 files. Sheridan

Directly signing an Office Word document using XML

谁说胖子不能爱 提交于 2019-12-05 03:28:26
I'm trying to sign a Microsoft Office Word file using C# in direct XML format. There are some questions and ambiguousness arises here like: How should I fill in the digest values, what value should I exactly digest for each reference, and what value should I digest for each transform? What value should I sign to create the SignatureValue ? And what certificate should I include in x509 data and how? (We don't exactly have a certificate so a guide for creating one is appreciated.) The last question is am I doing this correctly? Maybe there is something wrong here and I have missed a package that

Python: Access embedded OLE from Office/Excel document without clipboard

我怕爱的太早我们不能终老 提交于 2019-12-05 03:00:41
I want to add and extract files from an Office/Excel document using Python. So far adding things is easy but for extracting I haven't found a clean solution. To make clear what I've got and what not I've written the small example test.py below and explain further. test.py import win32com.client as win32 import os from tkinter import messagebox import win32clipboard # (0) Setup dir_path = os.path.dirname(os.path.realpath(__file__)) print(dir_path) excel = win32.gencache.EnsureDispatch('Excel.Application') wb = excel.Workbooks.Open(dir_path + "\\" + "test_excel.xlsx") ws = wb.Worksheets.Item(1)

Powerpoint content add-in on Windows just show an image in slide show mode instead of a web app

会有一股神秘感。 提交于 2019-12-05 02:23:04
问题 I developed a powerpoint content addin and it works fine on Mac. Then I test it on Windows and found out that when I go to slide show mode, Powerpoint just show an image (a snapshot at the time entering to slide mode) instead of a web app. There is no interaction to the addin on slide show mode, clicking on it just make it move to the next slide. The addin works fine in edit mode though. Strangely, this behaviour is not the same for all Powerpoint (2016) on Windows. I tested on another