ms-office

How can you add a Custom Panel in a Visio 2013 add-in?

六眼飞鱼酱① 提交于 2019-12-23 10:07:59
问题 Recently I wrote an outlook add-in which has a ribbon.xml file for an extra ribbon, context menu's, etc. I also added an extra panel docked on the right of my window. Now I've begun some research as on how to create add-ins for Visio. The ribbon.xml is practically the same, so that's not a problem at all. However, I can't seem to find any way to add a custom panel when a Visio document is opened. So far I have this in Visio to know if a document is opened/created/changed: private void

The Url of dialog box does not work with angular.bootstrap (infinite $digest Loop)

两盒软妹~` 提交于 2019-12-23 09:27:41
问题 I have a mean-stack website. I want to use ExecuteFunction to bind a button to launch this website in a Dialog box: function doSomethingAndShowDialog(event) { clickEvent = event; Office.context.ui.displayDialogAsync("https://localhost:3000/try", {}, function () {}) } Clicking on the button opens a dialog box with the following url, it does show the content of the page: https://localhost:3000/try?_host_Info=excel|web|16.00|en-us|7fe9b4e9-d51e-bea5-d194-c817bc5ed4bc|isDialog#%2Ftry%3F_host_Info

Is it possible to automate a Click-to-run application?

只谈情不闲聊 提交于 2019-12-23 07:55:38
问题 I have a small application which automates Microsoft Word via COM/OLE Automation. Unfortunately this doesn't work with the virtualized Click-to-run editions of Word, because they don't have the required keys in the registry. (At least not where they are exptected to be) In other words: CreateObject fails because the necessary COM classes are not registered. Is there any way to automate the Click-to-run editions of Microsoft Office? Perhaps some compatibility layer? EDIT: I found just two

Couldn't find Microsoft Word Document in DCOM Config

岁酱吖の 提交于 2019-12-23 07:25:39
问题 I am creating a simple asp.net web site that use office 2007/2010 automation .. when i published the website on the iis 7 on my local machine (window 7) have an exception Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)). I have searched for this exception and i found that i have to set some permissions to office in

How to Convert .doc/.docx to pdf in java using POI..?

自作多情 提交于 2019-12-23 06:41:22
问题 how to convert ms-document to PDF, is there any example pls share with me.. thanks. 回答1: If you are requiered to use POI i guess you should take a look at org.apache.poi.hwpf.converter I never tried this, but i guess it´s worth a try atleast. It seems like you can use WordToFoConverter to convert your XWPFDocument to a FO-file (example here). From there you can use apaches FOP to transform the FO-file to a PDF like this: // Step 1: Construct a FopFactory // (reuse if you plan to render

Accessing Office 365 user mail data with admin authorisation only

妖精的绣舞 提交于 2019-12-23 05:30:50
问题 I am currently building a simple web app the flow of which is: 1. Admin user for Office 365 provides auth and signs in 2. App retrieves all mail for all users in the domain It is possible to do this with Google Apps for business, i.e. retrieve mail for all users with only the admin auth. How would you go about doing this for Office 365? I am currently encountering this problem using the REST API - Get MS Exchange mail for all group members Is there another way? EWS? I have to believe it's

How to highlight a substring based on a regex and turn it into Excel or HTML

女生的网名这么多〃 提交于 2019-12-23 03:12:39
问题 I have the following data frame: dat <- structure(list(value = c("YMNSMQEML", "FIYRHMFCV", "VLFKFDMFI", "KLLDRFPVA", "RVLDDFTKL")), .Names = "value", row.names = c(NA, -5L), class = c("tbl_df", "tbl", "data.frame")) dat #> value #> 1 YMNSMQEML #> 2 FIYRHMFCV #> 3 VLFKFDMFI #> 4 KLLDRFPVA #> 5 RVLDDFTKL Given the following regex pattern L.{2}[FR] I would like to create an Excel where the substring is highlighted bold. How can I achieve that? UPDATE Using LIKE operator: Option Explicit Sub

Exporting Contacts into csv file automatically format mobile numbers into scientific

断了今生、忘了曾经 提交于 2019-12-23 03:02:41
问题 Into my project when i m exporting Contacts into csv file automatically format mobile numbers starts with 91 into scientific. e.g mobile no into exporting data 919433454320 mobile no into csv file when scientific format 9.194E+11 after format cell as number with 0 decimal places 919430000000 For exporting contacts into my project i m using Microsoft.Office.Interop.Excel.Application Workbook here is my code Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel

Insert Button into Word Document

我是研究僧i 提交于 2019-12-23 02:56:18
问题 Is it possible to insert a button into a word document and call as macro on click of this button. Please let me know if you have any similar ideas and also the procedure to do it. 回答1: You'll need to use VBA to do this, but it's pretty straight-forward. There's an MS knowledge base article that describes exactly what you want to do. 回答2: It is possible to insert a Command button (as well as some other contorl like radio button etc) in Word Document. Click on the Toolbar and enable Visual

SQL Server does not exist or access denied error

有些话、适合烂在心里 提交于 2019-12-23 02:36:37
问题 I have an application that runs fine when executed off the server. When clients try to connect, they receive the following error: Failed to get data. *Data provider could not be initialized *SQL Server does not exist, or access denied on my Office Web Components (MDAC). I am guessing there is some security or server configuration error, but I'm not able to pinpoint it. I am running SQL Server 2005. *Note - clients can't change their security settings, company policy. 回答1: When you try this