ms-office

Cannot load local office.js

混江龙づ霸主 提交于 2019-12-20 04:41:35
问题 As this answer suggested, I want to modify a little bit office.js . So I copied the content of https://appsforoffice.microsoft.com/lib/1/hosted/office.js to local, such that https://localhost:3000/static/office.js shows well the content. Then, I make a very simple file test.html : <html> <head> <!--<script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js"></script>--> <script type="text/javascript" src="https://localhost:3000/static/office.js"></script> </head> <body> haha <

How can I get the text by color from a word document with win32com?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-20 03:45:08
问题 I have a word document with several tables. In each table there are two colors, black and red. I'd like to get the text from cells in a word document table by its color. I found a way, but I think it's very inefficient. The following code gets the text from a word table cell, and prints each word with it's color. import os, sys import win32com.client, re path = os.path.join(os.getcwd(),"../files/tests2.docx") word = win32com.client.Dispatch("Word.Application") word.Visible = 1 doc=word

Office Web App - Show task pane on load

狂风中的少年 提交于 2019-12-20 03:11:30
问题 How do I show a custom taskpane automatically when the add-in loads (i.e. without having to click a command that is tied to that URL)? 回答1: Jan 2018 update: Office has shipped a new feature which lets you configure your add-in to automatically open a task pane when the file loads if the add-in had been used there previously: https://docs.microsoft.com/en-us/office/dev/add-ins/design/automatically-open-a-task-pane-with-a-document. Original Answer: Commands cannot currently be used to launch a

Opening Microsoft Access with parameters

▼魔方 西西 提交于 2019-12-20 02:59:15
问题 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. 回答1: 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

Is there a way to programmatically add a digital signature to a VBA Macro in a word document?

爱⌒轻易说出口 提交于 2019-12-20 02:42:17
问题 Is there a way to programmatically add a digital signature to a VBA Macro in a word document using C# or VB.Net? There are some similar questions asked already; however, none that I could find answer my question: How to programmatically remove the digital signature from VBA macros in Excel? Digital Signature for Excel Macro 回答1: Unfortunately, there isn't an automation API for this in the VBA environment. I got it working 100% unattended (so I could use it in automated builds) by P/Invoking

Is there a way to programmatically add a digital signature to a VBA Macro in a word document?

半腔热情 提交于 2019-12-20 02:42:10
问题 Is there a way to programmatically add a digital signature to a VBA Macro in a word document using C# or VB.Net? There are some similar questions asked already; however, none that I could find answer my question: How to programmatically remove the digital signature from VBA macros in Excel? Digital Signature for Excel Macro 回答1: Unfortunately, there isn't an automation API for this in the VBA environment. I got it working 100% unattended (so I could use it in automated builds) by P/Invoking

Use Reg Query whilst Registry Editing Tools Disabled in GPO? MS Office Version Lookup

爱⌒轻易说出口 提交于 2019-12-20 01:36:18
问题 Good day all, So I wrote a simple .bat file I was going to call on user startup to get the MS Office versions. Tested fine for admins but unfortuatnely not so with standard users. I suspect this is because we have: Prevent access to registry editing tools setup in the GPO, though disable regedit from running silenty is set to 'no'. So my questions is a) is that the likely reason why my script isn't working and b) if so is there a regedit alternative. Trying to keep it nice and simple. Code

Submit add-ins with custom functions (update?)

只愿长相守 提交于 2019-12-19 17:41:48
问题 I asked a question regarding submitting add-ins with custom functions 6 months ago. The conclusion at the moment was an add-in that uses custom functions cannot currently be published to the Office Store or via Office 365 centralized deployment. But I realize that the document has changed, now it is Known issues ... ... Deployment via the Office 365 Admin Portal and AppSource are not yet enabled. Moreover, I found the new functions button in Script Lab. Users could register a function like

C# office 2010 automation

时光怂恿深爱的人放手 提交于 2019-12-19 10:33:32
问题 i'm trying to make a program that inserts data into specific places in existing word document and saves a copy of it. and i have no clue how to do it , and i cant find any good resource on office 2010 automating. can anyone point me in the right direction and/or give me some examples. thanks in advance. found a solution will add an answer later on 回答1: Here is how i did it , it may not be the best way , but its working ! add references to the office interop using Microsoft.Office.Interop.Word

How to programatically re-enable documents in the MS Office list of disabled files

谁说我不能喝 提交于 2019-12-19 09:37:51
问题 MS Office programs keep a list of disabled files that have caused errors when previously opened. A user can remove documents from this list by accessing the list through the program menu and selecting a document to be re-enabled. (http://support.microsoft.com/kb/286017) The question is: How can this re-enabling of documents be accomplished programmatically, without interaction with the gui? 回答1: Consolidating previous answers and expounding upon them here. Office products store disabled items