ms-office

Does Office Starter include the DLLs for Microsoft.Office.Interop?

送分小仙女□ 提交于 2019-12-02 06:50:44
问题 I want to use Microsoft.Office.Interop.Excel to pull some data out of an XLS file. I have Visual Studio 2010 and the Office Developer Tools installed. However, I am getting a COMException error at var app = new Application(); when the program runs. Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). I have Office Starter 2010

Including Microsoft Office Spell Checker in own application

时光总嘲笑我的痴心妄想 提交于 2019-12-02 06:42:36
问题 I heard a while ago that the Microsoft Office Spell Checker could be included in own application by using the COM interface of it. Someone remembers the details? Which dll, or which ActiveX Object was it? 回答1: I have been investigating this just a month ago. It seems that it was possible, but if I remember well since Office 2003 the embeddable COM component has been removed. You will have to look for older versions if you want to do so. Unfortunately I don't have any link, but it took me few

Forcing the browser to download a docx file in JAVA generates a corrupted document

淺唱寂寞╮ 提交于 2019-12-02 06:33:30
Using JAVA, I'm trying to force the browser to download files. Here is the code I currently use: response.reset(); response.resetBuffer(); response.setContentType(mimeType); response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\""); InputStream in = new FileInputStream(file); OutputStream out = response.getOutputStream(); IOUtils.copy(in, out); out.flush(); out.close(); in.close(); response.flushBuffer(); It works almost well, but when forcing the download of a docx document (MS Office 2007+), the downloaded file is corrupted (at least, that's what MS Office tells

(JavaScript API 1.3 for Office) Custom Properties GetItemOrNull

走远了吗. 提交于 2019-12-02 06:19:57
I've created this a couple days ago in which i needed help regarding how to add custom properties to a said document. First of all, I'm running Word 1701(7766.2047). Let's say I have a method In which I return a said custom property. First I'd check if the custom property has been created already. I would do this with a simple getItemOrNullObject(key) and.. If returns null Then simply create it AND return it Else return it It is of my understanding that I need to do a return context.sync().then for the object get actually loaded with data? Am I doing too much return context.sync() calls for

Including Microsoft Office Spell Checker in own application

强颜欢笑 提交于 2019-12-02 05:50:59
I heard a while ago that the Microsoft Office Spell Checker could be included in own application by using the COM interface of it. Someone remembers the details? Which dll, or which ActiveX Object was it? I have been investigating this just a month ago. It seems that it was possible, but if I remember well since Office 2003 the embeddable COM component has been removed. You will have to look for older versions if you want to do so. Unfortunately I don't have any link, but it took me few minutes to find the appropiate explanations in Microsoft forums. I have been evaluating some commercial

Are the command codes for ExecuteMso documented?

一曲冷凌霜 提交于 2019-12-02 05:47:49
MS Office apps have an incredible API that lets one execute any command that is accessible from the UI, but inaccessible from the Object Model. Specifically, you can use ExecuteMso() to execute any command button, toggle button or split button. The docs say: expression.GetEnabledMso(idMso) idMso - Identifier for the control (String) Are the string command codes documented anywhere? Office apps have thousands of unique commands that can be viewed in the Options dialog, and it would be nice to have a reference of the string codes for all of these. There are these: Office 2007: Lists of Control

Read/write Excel 2007 password-protected documents

感情迁移 提交于 2019-12-02 05:40:41
问题 What method does Office 2007 use for encryption (when choosing Encrypt and setting a password from Office menu)? My C# app needs to create and read encrypted Excel 2007 files (.xlsx). It is important that these files remain accessible from Excel, so I must use Microsoft's encryption method, can't brew my own. Normal Excel 2007 file is a ZIP-compressed file, and I'm accessing it using ExcelPackage, which internally uses * System.Io.Packaging.Package* (part of .net 3.0). However, the encryption

How can Office Add-in (Task-pane) not display by default

眉间皱痕 提交于 2019-12-02 05:33:56
I have an Task-pane Office Add-in ( https://msdn.microsoft.com/en-us/library/office/fp123523.aspx ) on registered Office 365 Site. When the user opens a spreadsheet from a document library on that site, then in edit mode, can use the "Office Add-ins" from the Insert menu to insert my add-in to the Spreadsheet. My add-in helps them population and update data on the spreadsheet. They then save the spreadsheet back with the updated data. Now, the next time they open that spreadsheet, my task-pane shows up again. Is there any the task pane can not start opened? I would like the user to explicitly

Possible for Word to edit documents directly off an web server without Sharepoint?

假装没事ソ 提交于 2019-12-02 05:32:57
问题 I have a use case that seems pretty simple, but after Googling around I can't find a solution. I have some Word documents on an FTP server and I'd like to be able to create a link that would download them into Word and then allow the saved changes to be sent back to the FTP server. The problem is that I can only get Word to either open the file from the FTP server as read-only and I can't save the changes back to the server automatically, or the file downloads to a temporary location which

Opening Microsoft Access with parameters

烂漫一生 提交于 2019-12-02 05:17:51
Similar to the OpenArgs property of the Form object, am I able to open the Access Application itself with a passed parameter (say from a .bat file)? Basically I'm looking to speed up the user's experience by having variable links to .bat files that open the same file, but to a different menu screen etc. Use the /cmd command-line parameter to start Access, and the Commmand() function in Access-VBA to read it. "C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE" D:\Work\myDb.accdb /cmd foo and this function called by an Autoexec macro: Public Function AutoExec() Dim sCmd As String ' .