office365

How to detect Office 2019 programmatically?

孤人 提交于 2019-12-20 02:54:44
问题 We are used to detect the currently installed Office version by getting the full version (e.g. from the file info of an installed Office executable) and map the mayor version to a friendly name, like 15 maps to "Office 2013", 16 to "Office 2016". However, there is no major version number change for Office 2019. The version number we get is 16.0.10827.20138 Is there a reliable way to map the minor version number to "Office 2019"? From which value onward will it be 2019? Is there another way to

How do we add field code for Word using word javascript api

旧时模样 提交于 2019-12-19 10:18:24
问题 I want to add field code using word JavaScript API. I checked the API documentation but I found nothing regarding this. Is there a way to do it in this API? 回答1: There is no direct support in the API for adding fields, i.e. you will have to create Open XML containing the field. You can then insert this Open XML in your document (something a long the lines of the following untested snippet): // Run a batch operation against the Word object model. Word.run(function (context) { // Queue a

Office 365, outlook add-in icon does not update

旧城冷巷雨未停 提交于 2019-12-19 10:12:44
问题 Developing an office 365, outlook add-in. Changed the add-in icon (Basically just replaced the old icons with new one. Icons have the same name.). Icon comes up fine on OWA but on Outlook 2016 add-in still, shows the old icon. Troubleshooting steps till now : Uninstall reinstall add-in => no effect. Uninstall add-in, restart Outlook 2016, reinstall add-in => no effect. Reset customizations from 'Customize Ribbon' option inside 'Outlook Options' => no effect. Restarted server => no effect

Send POST AJAX request from Office Add-In

烈酒焚心 提交于 2019-12-19 09:08:08
问题 I'm trying to send POST Ajax request for third party service from my Outlook Add-in, but no matter what I tried I receiving Error: Access is denied , and status 0 (request never hit the server). Assuming we are running IE9 or 8 behind the outlook I tried old school hacks like https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest. $.ajax({ url: endpoint, data: JSON.stringify({'1':'2'}), // headers: {'X-Requested-With': 'XMLHttpRequest'}, contentType: 'text/plain', type: 'POST',

IMAP access to mail office 365 with javamail

早过忘川 提交于 2019-12-19 07:50:12
问题 I'm trying to read the emails in a folder of an email account Office365 using JavaMail 1.4 api. My code is: public static void main(String argv[]) throws Exception { // Get a Properties object Properties props = System.getProperties(); // Get a Session object Session session = Session.getInstance(props, null); // Get a Store object Store store = null; Folder rf = null; if (CUR_MAIL_PROTOCOL != null) store = session.getStore("imap"); // Connect if (CUR_MAIL_HOST != null || CUR_MAIL_LOGIN !=

IMAP access to mail office 365 with javamail

那年仲夏 提交于 2019-12-19 07:50:09
问题 I'm trying to read the emails in a folder of an email account Office365 using JavaMail 1.4 api. My code is: public static void main(String argv[]) throws Exception { // Get a Properties object Properties props = System.getProperties(); // Get a Session object Session session = Session.getInstance(props, null); // Get a Store object Store store = null; Folder rf = null; if (CUR_MAIL_PROTOCOL != null) store = session.getStore("imap"); // Connect if (CUR_MAIL_HOST != null || CUR_MAIL_LOGIN !=

Email to link with email parameter opens outlook in browser starts new email

淺唱寂寞╮ 提交于 2019-12-19 04:12:14
问题 I am looking to replace for "mailto:" that redirect users to their outlook account in browser and do new email with the email in the link. mailto: works for all users if they have set up default application outlook locally. <a href="mailto:example@outlook.com">Send Email</a> This opens the default email application to send new email to 'example@outlook.com' I want to use this specifically for office365 outlook mail users, so instead of using default app, I need something for example: <a href=

Authorization_IdentityNotFound Error while accessing graph API

戏子无情 提交于 2019-12-19 03:42:24
问题 I have searched with the error which I found, Did not find any matching questions. So posting question. Appreciate if some one provides some pointers to proceed. My goal is to access graph API in my desktop client. I have started using fiddler to experiment. I have followed instructions provided at https://graph.microsoft.io/en-us/docs/authorization/app_only registered Web APP using Application Registration portal using my Microsoft work account. Provided 'Read all users' full profiles in

Microsoft office 365 Groups: Guest user are unable to do drive call using graph endpoint [closed]

戏子无情 提交于 2019-12-19 03:22:56
问题 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 last year . Our application reads group drive content by doing Get call on the drive item. This used to work fine for both internal members and guest users. Its working now for internal members but not working anymore for guest users. Following is the sample call. https://graph.microsoft.com/v1.0/drives/b!uey_5Lpf8Eu0

550 5.7.1 Client does not have permissions to send as this sender (office365)

混江龙づ霸主 提交于 2019-12-18 18:53:39
问题 i m trying to send email with following configuration Host: smtp.office365.com port: 587 user: "myemail@domain.com" pass: "mypassword" i m getting the following exception : 550 5.7.1 Client does not have permissions to send as this sender i have gone through many forums that told me to set send as permission for mailboxe but i m not able to find any such configuration in oulook web app...or do i need to configure it somewhere else and if it so then where..???....i have only used above