I'm developing a Word Add-in (Word API + Office.js) and I'm wondering if it's possible to get notified when the user click on Close button of word application
Currently my word template has few content controls with data, i am saving the content control data to database when the cursor comes out of the control.
i am trying to implement the same logic when the user click on Close button.
so want check whether Word API has a way to track user click on Close button? Thanks!
I'm afraid that there is no way yet to handle that event in Office.js. But it's a great idea. Please go to Office Developer Suggestion Box and vote up this suggestion.
Related
With the recent "upgrade" to Google Forms saving data, prefilled URLs no longer seem to work.
Steps to recreate problem:
create a Google Form
Create a prefilled URL for some of the fields
Open the form on an Android phone
Create a shortcut on the phone's homescreen from the "Save to homescreen" option on the form's menu
Open the form from the shortcut and submit a response
Open the form again from the shortcut -- the form will no longer have prefilled values.
Anyone have a workaround for this? I have a fairly large form that I use to track some tasks with some standard response values. This worked perfectly before the "upgrade" but now is useless saved as a shortcut. I can still use the prefilled URL from an email or another rich text object available on the phone, but needing to open additional documents is frustrating after getting used to the convenience of one click of an icon for years.
I've had the same issue. Not quite as convenient but I've posted the URL of the prefilled link on a Google note so its still one click away with Google note on the home screen.
I had the same issue. The fix that worked for me was to remove the "autosave" option in the forms settings.
Settings -> Presentation -> Disable auto-save for all respondents
I know how to subscribe to selection change events in the office Word API for my addin (see e.g. https://learn.microsoft.com/en-us/office/dev/add-ins/develop/read-and-write-data-to-the-active-selection-in-a-document-or-spreadsheet or Microsoft Word JavaScript API - event handler for text selection in document), but I cannot figure out how to subscribe to scroll events i.e. where the cursor is not moved. Do you know how?
Scroll events are not yet supported in the Office JavaScript library. But it is a good idea. Please suggest it at Office Developer Suggestion Box.
I'm developing a Word Add-in (Word API + Office.js) and I'm wondering if it's possible to open word embedded object browser dialog
Currently my word template has few content controls with data, now i am trying to open object browser dialog to attach office object(excel) to the document as shown in the image when the user clicks on button.
so want check whether Word API has a way to open word object browser dialog? Thanks!
we have a CRM-like application written in GWT/GXT with help of our library which wraps some GXT widgets like ComboBox or Grid from GXT to simplify interaction with relational database. When the application starts a user have to log in and after successfully login the user can see main horizontal menu and some welcome information. If the user want to do something (e. g. to find a customer) he/she has to click somewhere in the menu and a new GXT modal window appears. Now we want to give the user a possibility to open a new session (e. g. to handle a second customer and visually compare customer's data with the first customer) in a new browser window.
How to do it?
Best Regards,
Jacek
The best way I know to comunicate between browser tabs is to use HTML 5 localStorage. Here is a good tutorial. In GWT you can use gwt-storage to easily manipulate the localStorage.
If you want to open a new Window or browsertab you will need to solve two problems:
You will need to specify the session. This can be done by simply create some kind of session token-cookie. This should be flagged with http-only for security reasons). New windows will send the same cookie (and the user is logged in)
You need to specify the item, you want to show. This can be done by using the history API and store the token in the URL
I've been searching for an answer to this but can find anything on it.
In Word, when the user closes a document they are prompted with the "save", Cancel Save", "Cancel" dialog.
Is there a way to tell which one of those buttons the user clicked on?
I know the even DocumentBeforeSave is sent out, But I can't find a way to tell which button the user actually clicked on.
I need to know in particular if the user clicked the "Cancel Save"
Note: using c#; 2007 dll's
I am pretty sure that cancel save and cancel are the same thing. When a user saves a document, you will see a DocumentSave.