ms-office

DCOM Failure of Office Automation

走远了吗. 提交于 2019-12-22 05:59:40
问题 I developed a C# program that pulls data from a SQL Server database and then generates Word documents which include the data. I've set the program up to run as part of an SSIS job on a Windows Server 2003 box. The program runs as user SQLSVC which doesn't have administrative privileges. When I log in as SQLSVC and run the program it executes correctly. However, when the program is run automatically as an SSIS job it freezes at the following line of code Microsoft.Office.Interop.Word

Add controls to existing ribbon group in Office (VSTO)

六月ゝ 毕业季﹏ 提交于 2019-12-22 05:49:27
问题 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

quick command or batch script to determine Windows and Office version

隐身守侯 提交于 2019-12-22 05:40:20
问题 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? 回答1: 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

Android version of iOS Quick Look Framework

自闭症网瘾萝莉.ら 提交于 2019-12-22 05:26:09
问题 Is there something similar to the iOS Quick Look Framework for Android? I'm trying to display/preview PDF and Microsoft Office files inside my Activity. I know that I can use Intents to open the files using the associated viewer but I would like to know if it's possible to not leave my application. 回答1: It's only possible if you write your own viewers. The iOS app is calling out to an external class which just happens to render inside your own view. Not much different to Android except, you

What algorithm does Microsoft Office 2010 use for encryption?

冷暖自知 提交于 2019-12-22 04:36:17
问题 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. 回答1: 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,

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

喜欢而已 提交于 2019-12-22 03:43: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

VSTO custom taskpane on multi DPI system shows content twice

半城伤御伤魂 提交于 2019-12-22 03:43:23
问题 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

Clear Microsoft Office Add-Ins cache

十年热恋 提交于 2019-12-22 00:32:44
问题 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

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

纵然是瞬间 提交于 2019-12-21 23:26:18
问题 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? 回答1: 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

Save and Open Remote Documents

冷暖自知 提交于 2019-12-21 23:19:05
问题 I know nothing about microsoft office development, but I would like to build a prototype of a plugin will allow a user to Save and Open documents from a remote repository. Perhaps later build in a version control system on the server - but the server side piece is about the easiest portion of it (in my case). Perhaps I should focus on getting this to work for one office application at a time - say MS WOrd (unless folks think excel is easier to work with). And lets target Office 2007 (as that