ms-office

Start Word without Add Ins

陌路散爱 提交于 2019-12-24 01:15:49
问题 Is there any way to start MS Word ( only this instance ) without Add Ins? I only find a way to disable the Add Ins complete. 回答1: From the Word command line switches documentation, you can use the /a switch to "prevent add-ins and global templates from being loaded automatically.": "C:\Program Files\Microsoft Office\Office\Winword.exe" /a You could also start Word in Safe Mode with the /safe switch: "C:\Program Files\Microsoft Office\Office\Winword.exe" /safe 来源: https://stackoverflow.com

Start Word without Add Ins

孤街浪徒 提交于 2019-12-24 01:14:08
问题 Is there any way to start MS Word ( only this instance ) without Add Ins? I only find a way to disable the Add Ins complete. 回答1: From the Word command line switches documentation, you can use the /a switch to "prevent add-ins and global templates from being loaded automatically.": "C:\Program Files\Microsoft Office\Office\Winword.exe" /a You could also start Word in Safe Mode with the /safe switch: "C:\Program Files\Microsoft Office\Office\Winword.exe" /safe 来源: https://stackoverflow.com

Combination button/dropdown in office

核能气质少年 提交于 2019-12-23 21:18:18
问题 How do I add a combination button/dropdown in office (see below). Preferably with code. Update: If it helps any, code isn't needed. 回答1: you can do it, based on the following ActiveX controls: Microsoft ImageList Control, Version 6 Microsoft ImageComboBox Control, Version 6 Manually, you select "More Controls..." from the [Control Toolbox] menu bar and double click the mentioned controls to get them on your sheet. Position the ComboBox where you want it to be, and disregard the position of

How to programmatically extract and manipulate images from an Office file?

≯℡__Kan透↙ 提交于 2019-12-23 21:11:37
问题 How to extract some images from PowerPoint and Word documents, in order to manipulate them, and after that, put the images back in the MS Office files? 回答1: Apache has a project called "POI" explicitly made for interacting with MS Office formats from Java. Hopefully that does it for you! http://poi.apache.org/ 回答2: Apache POI can handle Word documents via its HWPF module, and extract or insert images from these. Although it's not well documented, check out the POI unit tests for image

Operation unavailable (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE)) when running through Windows Service?

不问归期 提交于 2019-12-23 17:33:41
问题 i am try to hook to outlook application from windows Service but getting an exception Operation unavailable (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE)) here is my code. public void ItemSendEvent() { try { if (Process.GetProcessesByName(ApplicationConstants.OUTLOOK_PROCESS_NAME).Count() > 0) { // If so, use the GetActiveObject method to obtain the process and cast it to an Application object. outlookApplication = Marshal.GetActiveObject(ApplicationConstants.OUTLOOK_APPLICATION_NAME

Prevent user from attaching to run-by-developer instance of MS-Office process

余生长醉 提交于 2019-12-23 16:19:06
问题 I encounter the following issue: After I start any Ms-Office application via COM in my C++ code (Word, Excel, PowerPoint, Visio) and make it hidden - then if user starts its own intance of that application - it will attach to run-by-my-code office process, while I have no idea of that. Eventually after my code has executed I close Office Application and a user will lose its work (As far as they attached to my process and didn't start its own one) So, 1) is there any way to prevent a user from

docx “File is corrupt” error in Microsoft Word

╄→гoц情女王★ 提交于 2019-12-23 12:18:48
问题 I wrote a program, which open docx package and changes some <w:t> -text in "word/document.xml". When i open new generated docx in Microsoft word, it gives me an error — "file is corrupted". But if look in "Open XML SDK Tool" diffs between template docx and result docx files — there is only two line changed in "word/document.xml". Look at screenshot: Program doesn't touches document format, styles or smth. Only text in <w:t> So, what's can provoke "file is corrupted" error in Microsoft Word?

MS Office SaveAs type FileDialog with a filter in vb

旧时模样 提交于 2019-12-23 11:59:06
问题 I want to create a 'save as' file dialog with a filter, but this doesn't seem possible using the FileDialog class (Microsoft Office 12.0 Object Library). The documentation actually mentions this here, see last paragraph, but gives no reason as to why? Is there another way of achieving this in vb? I find it strange that the FileDialog class doesn't allow this because Word, Excel and Access all have this exact SaveAs feature built-in. I realise that the FileDialog can created as a FilePicker

Create exclusive word instance

百般思念 提交于 2019-12-23 10:44:49
问题 i am creating a word (14) instance with interop out of a c# .net4 winforms application to work with a document. If some word document gets opened beyond my application the same word instance will be used an disturbs my application. Simple question : Is there any way to set my word instance exclusive for my application? Thanks in advance. Btw: Found some stuff with exclusive/word/office/isolated/block/instance but no answers anyhow. 回答1: There's sort of a solution, but it's not pretty. The

Create exclusive word instance

风格不统一 提交于 2019-12-23 10:44:28
问题 i am creating a word (14) instance with interop out of a c# .net4 winforms application to work with a document. If some word document gets opened beyond my application the same word instance will be used an disturbs my application. Simple question : Is there any way to set my word instance exclusive for my application? Thanks in advance. Btw: Found some stuff with exclusive/word/office/isolated/block/instance but no answers anyhow. 回答1: There's sort of a solution, but it's not pretty. The