ms-office

Using interop.word ranges

你说的曾经没有我的故事 提交于 2019-12-25 18:12:03
问题 I'm having trouble figuring out how to work with word ranges. I have picture files that I am adding to a word file, but I can't figure out how to add text and tables in between the pictures. The structure I want is this: Text, table, picture. Then repeat. However, when I add text or tables, they all area added after the four pictures, which stay at the top of the file. I've been reading and I've figured out I need to use ranges to specify where you want to place the tables/text, but all the

Missing Microsoft XML schema mystery

隐身守侯 提交于 2019-12-25 14:48:13
问题 I downloaded the XML schema's for Office 2003 from Microsoft's download site here so I can validate Excel documents that people upload to our app. Turns out that they don't work. I receive errors where it can't resolve the type like this: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'udcxf:File' to a(n) 'element declaration' component. I've traced this error to the fact that the udc.xsd file which makes a namespace reference to http://schemas.microsoft.com/data/udc

I want to use the Ewa API to make calls into methods that are in the Ewa.js / EwaMoss.js script files

妖精的绣舞 提交于 2019-12-25 14:32:53
问题 The Ewa namespace is documented here: https://msdn.microsoft.com/en-us/library/office/ee589018.aspx It's pretty easy to use, but certain calls are not documented and there's no sample code. The source for Ewa.js is here: https://s1-excel-15.cdn.office.net/x/sc/1662281009__layouts/App_Scripts/Ewa.js But it's minimized. If you look at the source, you will see that there's a call named "InsertDeleteCells". If you put a breakpoint there, and then attempt to delete a row from the spreadsheet in

I want to use the Ewa API to make calls into methods that are in the Ewa.js / EwaMoss.js script files

浪子不回头ぞ 提交于 2019-12-25 14:31:03
问题 The Ewa namespace is documented here: https://msdn.microsoft.com/en-us/library/office/ee589018.aspx It's pretty easy to use, but certain calls are not documented and there's no sample code. The source for Ewa.js is here: https://s1-excel-15.cdn.office.net/x/sc/1662281009__layouts/App_Scripts/Ewa.js But it's minimized. If you look at the source, you will see that there's a call named "InsertDeleteCells". If you put a breakpoint there, and then attempt to delete a row from the spreadsheet in

VSTO Outlook add-in, does UI manipulation need to be done from main thread?

本小妞迷上赌 提交于 2019-12-25 14:04:27
问题 I'm maintaining a VSTO add-in for Outlook, and it has a BackgroundWorker that handles syncing with a server. I want the worker to trigger user errors in the UI (changing the picture on a button, enabling a message in a settings window). Does UI manipulation need to be done from the initial thread? This StackOverflow answer says not, but a comment on it says so. It's for Excel, but still for a VSTO add-in. I tried and it seems to work from either thread, but there could be a race condition I

Microsoft Excel Array Formula with dates

限于喜欢 提交于 2019-12-25 11:33:12
问题 I need the following array for a Date type: =IF(OR(A2:C2="Mar 12"),1,0) Sample Data https://docs.google.com/spreadsheet/ccc?key=0AhoDU0OTM87sdHR3RGw3NTJacEV1OEt5OWZTWTBYUFE&usp=sharing Looking at the sample data, in Column E I want an array formula that would look into columns B to D and search for results that contain 'May 12' and display true or false (1 or 0) in column E. 回答1: I think this will meet your needs - type in D2: =IF(SUM((MONTH(A2:C2)=5)*(YEAR(A2:C2)=2013))>0,1,0) but press CTRL

developing outlook add-in, to check if the sent mail item has been replied to

泪湿孤枕 提交于 2019-12-25 06:25:29
问题 So, I want to check if the mail I sent to someone, has a reply. In other words, if that person has replied to my mail. sentboxFolder = ns.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderSentbox); //So here if i access individual mail and check Outlook.MailItem mailItem = ( Outlook.MailItem ) sentboxFolder.Items[1]; Now, if i took the PR_LAST_VERB_EXECUTED property of this mail item, what would it return if the mail has a reply sitting somewhere in my inbox and what

Can't find installed Office 2013 Home and business with MsiEnumProducts

浪尽此生 提交于 2019-12-25 06:01:40
问题 I use MsiEnumProducts() to find all installed MS Office products and check their versions. If I have an Office 2013 Professional Plus edition, it works correctly. I receive a full list of installed office products, like word, excel, outlook, etc, with correct product code GUIDs. https://support.microsoft.com/en-us/kb/2786054 The GUIDs look like this: Microsoft Office Professional Plus 2013 - {90150000-0011-0000-1000-0000000FF1CE} Microsoft Word MUI (English) 2013 - {90150000-001B-0409-1000

Is it possible to write a word add-in or something similar to provide a custom mailmerge datasource?

强颜欢笑 提交于 2019-12-25 05:09:33
问题 I've a backend system which I want to use as the datasource for MS Word 2010 mailmerge. I've the idea that I should write a word add-in which provides the datasource and is communicating with my backend over webservices. Is it generally possible to provide a custom datasource with a word add in? Is there a besser solution? Is it possible to do this in C#? Where can I found moar informations about this? Thanks 回答1: The types of data source that Word's out-of-the-box Mailmerge feature can use

OfficeJs/WordJs select text range by index and bind click event

醉酒当歌 提交于 2019-12-25 04:21:45
问题 First , Using OfficeJS/WordJS how can I select text in a paragraph by index and length. For example, my paragraph has 100 characters and I need to select all from index 2 till index 16. Second , When I found this range - how I can add an event handler for this range? I mean, when user click at 2-16 chars in my paragraph - I will show some useful information in my Add-in. I'm using Word 2016 Add-in. Thanks! 回答1: I recommend you to explore the Range functionalities we added as part of the 1.3