ms-office

Where does Outlook store which PST files are mounted? [closed]

こ雲淡風輕ζ 提交于 2019-12-11 07:39:01
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I'd like to programmatically add a PST file to a person's Outlook profile. I found some code here: http://www.eggheadcafe.com/community/aspnet/65/10030171/try-this-code.aspx While that does the trick, it still leaves the question - "Where does outlook keep this list of mounted PST files?" Is it in the registry?

In PowerPoint 2010/2013, how to keep watermark always on top using VBA

蹲街弑〆低调 提交于 2019-12-11 07:37:38
问题 I am using a small VBA program to apply some text in the background. I am able to apply watermark but if I use any image in the presentation then the watermark goes behind that image. Is there any way to keep the watermark always in front. I am using this code to apply watermark : Dim cntDesigns As Integer cntDesigns = ActivePresentation.Designs.Count For iter = 1 To cntDesigns Dim curDesign As Design Set curDesign = ActivePresentation.Designs.Item(iter) ' EnumerateMasters Dim masterCount As

Put multiple Word document windows into the same parent window

∥☆過路亽.° 提交于 2019-12-11 07:03:43
问题 This addin adds 'document tabs' into Microsoft Word, I wonder how it's done? As we know, according to Word's 'Object Model' API, each Word document is associated with a standalone Word window , how can that addin put multiple Word document windows into the same parent window and use tabs to switch among them? Attached this screenshot to illustrate how that addin works: 回答1: No idea how that addin does it specifically, but If I had to guess, i'd say they were putting word into MDI mode,

Useful use cases for escape character format _xHHHH_ in Office Open XML?

时光怂恿深爱的人放手 提交于 2019-12-11 06:59:47
问题 The default encoding in Office Open XML is UTF-8 . So Unicode is already possible. Nevertheless does Microsoft defining: ECMA-376 Part 1 22.4 Variant Types 22.4.2.4 bstr (Basic String): 22.4.2.4 bstr (Basic String) This element defines a binary basic string variant type, which can store any valid Unicode character. Unicode characters that cannot be directly represented in XML as defined by the XML 1.0 specification, shall be escaped using the Unicode numerical character representation escape

access a chart's shape ID - excel vba

三世轮回 提交于 2019-12-11 06:54:30
问题 Some background first. Excel allows duplicate names for shapes . That is, you can have both a ChartObject and an oval shape in the same worksheet with exactly the same name. You can also have two charts named both "Chart 2". If you try to reference a shape with a duplicate name, e.g. ActiveSheet.Shapes("Dupe").Select, excel seems to resort to returning the object with the lowest ID (and the duplicate name). There is no way (that I know of) of linking an ActiveChart with its corresponding

How do I do COM Interop in Java?

江枫思渺然 提交于 2019-12-11 06:25:29
问题 I am a .NET programmer working with a Java Spring Boot project to create a REST API. I need to do some COM interop with an Excel spreadsheet from within the Spring Boot application. How do I go about doing that? I know the code to write. I just don't know the tools. Specifically, what jar files do I need to reference? Where do I get them from? 回答1: I would prefer https://poi.apache.org/ Otherwise you can use "Java Access Bridge", here is an overview https://docs.oracle.com/javase/8/docs

Word Online Add-In: Using objects across multiple contexts

前提是你 提交于 2019-12-11 06:07:58
问题 I'm attempting to make an add-in, whereby a paragraph is split into sentences and then spoken, with the sentences being highlighted as they are read. For the most part, I have this working but the issue comes when I want to highlight the sentences currently being read. I have a function which splits the paragraph into sentences, based on where the users cursor is: function selectionTest() { Word.run(function (context) { originalRange = context.document.getSelection(); var paragraphs =

UIDocumentInteractionController

天涯浪子 提交于 2019-12-11 05:47:10
问题 I have a problem that make me crazy. From my app, when an OpenIn menu is shown, I'll choose an application to open the file (ex:DocsToGo) and the document is opened for edit. But after editing, how can I send it back to my app or get the link where that document is saved ? How can I get new content of that file ? 回答1: Your app cannot get access to the changed version of the file. The new version resides within the sandbox of the app to which you sent it. The only way you can get the file back

Cell color change In Excel Using Conditional formatting in C#

淺唱寂寞╮ 提交于 2019-12-11 05:37:11
问题 I have exported datatable to Excel successfully. Now I have to change some cell color using Conditional formatting in Excel sheet using C#. For example if a cell contains text as "Cat" it should be display in Green color and if a cell contains text as "Dog" it should display in blue Color. Now how can I do this? 回答1: Click the cell and select "Conditional formatting" from the menu. Then select something like "rules for cells that equals". Fill in "Cat" as what is should be equal to and choose

OneNote COM Addin only loads manually

China☆狼群 提交于 2019-12-11 05:24:01
问题 I have been working on a COM add-in for OneNote based on the tutorial at http://www.malteahrens.com/#/blog/howto-onenote-dev/ and http://support.microsoft.com/kb/2555352. It builds fine, however, when I load OneNote, I have to manually go through to options to start the add in. It tells me a "runtime error occurred during the loading of the COM add-in." Once the add-in is loaded manually it works as it should. I've been searching around on the internet for a while without much luck. I have