ms-office

Apps for Office: my task pane app doesn't get the licensing '?et=' license token

帅比萌擦擦* 提交于 2019-12-11 11:44:25
问题 MSDN docs say: The Office application calling you app's URL would add the following query string to it and then pass the URL: http://fooservice.com/index.htm?et= PAByAD4APAB0ACAAYQBpAGQAPQ .... (->this string goes on for a while - Mihaly KR) I've tried everything, but nothing gets ever POSTed (or GETted), no ?et parameter. The app loads fine in Office, but I want to get the client id from the token, so I could do a permanent storage on my server. I did a php page which prints all get and post

Programatically get path of open Excel/Word-document

我怕爱的太早我们不能终老 提交于 2019-12-11 11:32:24
问题 Is there any way to get the path of documents currently open in Microsoft Word and Microsoft Excel? I know how I can fetch the PID and the window handle for the running instance of Excel or Word, but I have no idea how to get the path of the open document. Is it even possible? I am thinking that an API would be nice, but I doubt it even exists. Perhaps some kind of plugin that sends information to my application is a possibility? (But if any other way is possible, I'd like to avoid having to

Userform toolbox additional controls dialogue window not showing

て烟熏妆下的殇ゞ 提交于 2019-12-11 11:24:06
问题 While using MS Excel (Outlook, Word, or Power Point as well apparently) I create a userform. The toolbox shows up showing controls tab and 16 icons representing various controls. When I right click in some empty space in the tool box control area, a menu comes up listing "additional controls" at the top and two greyed out options below it. When I select "additional controls" a spinning blue circle appears briefly then disappears and nothing happens. It is my understanding that a dialogue box

VB.NET XPathDocument.CreateNavigator throws “debuggerDisplayProxy” error

余生长醉 提交于 2019-12-11 10:26:42
问题 I'm new to this and working from a tutorial. I have a variation on the following code: Dim xDoc As XPathDocument Dim xNav As XPathNavigator xDoc = New XPathDocument("xxxxxxx.xml") xNav = xDoc.CreateNavigator() However, "CreateNavigator" returns: 'debuggerDisplayProxy' is a type and cannot be used as an expression. I've Googled and searched and found nothing (although I'm not really sure what to look for). This seems like something basic and it's stopping me from continuing with a lot of other

Replacing Text in Microsoft Publisher Using Powershell

99封情书 提交于 2019-12-11 09:57:38
问题 My HR team asked if I could help them generate new business cards for all of our employees. They have a Publisher file and I am trying to replace the text in. I've written all the portions that pull the info from AD and the looping mechanism but I cannot get the text replacement to function. I've done something like this in Microsoft Word before using the Find.Execute Method from Word. That was straightforward as I just fed the method my arguments and it worked. This time though, I am trying

Office task pane app: how to get the whole document in an OOXml string?

落花浮王杯 提交于 2019-12-11 08:59:48
问题 I'm developing an Office Task Pane app that needs to access the whole document. I know there is an API getFileAsync() https://msdn.microsoft.com/en-us/library/office/jj220084.aspx Office.context.document.getFileAsync(fileType [, options], callback); However,the fileType can only be three values: compressed , pdf , text . compressed Returns the entire document (.pptx or .docx) in Office Open XML (OOXML) format as a byte array. pdf Returns the entire document in PDF format as a byte array. text

Problems retrieving content controls with Open XML sdk

被刻印的时光 ゝ 提交于 2019-12-11 08:08:20
问题 I am developing a solution that will generate word-documents. The word-documents are generated on the basis of a template document which has defined content controls. Everything was working good for me when I had only one content control in my template, but after expanding the template document with more content controls, I am getting exceptions. It seems like I am not finding the content controls. This is my method: private void CreateReport(File file) { var byteArray = file.OpenBinary();

How to read the hyper-link of an image in power Point using c#

為{幸葍}努か 提交于 2019-12-11 07:57:52
问题 I have inserted an image to powerpoint using c# and have inserted a hyperlink to the picture and its working perfectly.But now i need to read the hyperlink of that picture which i have inserted using c#. Whereas am inserting a text with hyperlink into powerpoint using c# ,and am reading the hyperlink back from the powerpoint by the below method. for (int i = 0; i < presentation.Slides.Count; i++) { foreach (var item in presentation.Slides[i + 1].Shapes) { var shape = (PPT.Shape)item; if

Windows installer for office add in

我的未来我决定 提交于 2019-12-11 07:41:56
问题 I created s set up project using this link. The addin was not getting installed. When I tried to add it through add ins in excel it said "xxx is not a valid office addin". This error is because the dll is not strong named and not in GAC. So I enabled adding the dll in GAC in the set up project using this link I am still not able to see the add in when I run the set up. and when I forcibly tried to add it, got the same error. Any idea whats going wrong? Thanks in advance! Update: Added the

Conditional Formatting in Microsoft Word 2016 Table Cells

不想你离开。 提交于 2019-12-11 07:40:01
问题 I have a table and it is for a test plan I am doing for a project, there is a column at the end of the table where the 2 values in it will be Y (passed the criteria) or N (didn't pass the criteria) Is there a way in Microsoft Word to change the colour of the text on the row with the value of N at the end, this makes it easier to spot the places where it failed the criteria. I know you can do the find and replace method but I was wondering if there was a way to do this automatically so when