We are developing a Word Task Pane Office Add-in (not VSTO) for internal organization documents
In Word 2013 (desktop) when we insert the add-in and save the document, when we reopen that document the add-in is automatically loaded.
In Word Online, this behavior is different, the add-in doesn't get automatically loaded. The user has to manually insert the add-in every time the document is opened.
Is there a way to automatically load it in Word Online?
Would running our own Office Web App Server help?
Is there a way to load the add-in through a parameter? (maybe query string?)
Thanks
We have changed the behaviour you describe: starting in January, Word Online add-ins will be persisted in the document just like they are in Word for desktop. So #1 is not supported now but will be soon. Workarounds like #2 and #3 are not available now.
Thanks!
-Michael (Microsoft Program Manager for add-ins)
Thank you for posting this issue and giving us the opportunity to find a resolution. It looks like we are having a temporary issue at present where the Office Add-ins width is getting saved to 3 pixels. We are striving to find a resolution as soon as possible. In the mean time you can try the following workaround
Temporary workarounds:
1.Opening the file in excel client app and saving the file will fix the width issue because we have a minimum width set in excel client app.
2.open the file in open xml editor, locate \xl\webextensions\taskpanes.xml and edit 'width' property of entry to a greater value, say, 300.
After the file is edited in client or excel client, excel client respects the new value and it do NOT go back to value 3. The issue seems to be only repro with the add-ins inserted in excel WAC only.
We will update the article once it is fixed
Thanks,
Sky
Microsoft Program Manager.
Related
We have an office online server build 16.0.8471.8525 (latest and greatest) which we use for displaying and editing word documents through WOPI. When editing a document which has a pretty header and footer representing a formal law document, it gets corrupted. It can be used for editing with no problem with our office server but viewing in it as well as in desktop word is not possible, even desktop word can not repair it.
Editing the same doc in office 365 online or desktop word does not corrupt the file.
Making the same change to the document with our office online server, office 365 online and desktop word produces 3 completely different files in therms of internal xml representation (viewing with Open XML SDK 2.5 for Microsoft Office) and its not trivial to figure out why is the file broken.
I'm struggling to find the correct approach for solving the problem
We recently upgraded to office online server version 16.0.8471.8525 and started seeing corrupted documents, too. As we still have the old version running in our production environment, we were able to experiment and compare a little:
All corrupted documents have in common that they contain some sort of drawing element (for example a very simple rectangle with a color). In the original document this drawing element has its PercentageWidth and PercentageHeight specified as <wp14:pctWidth>0</wp14:pctWidth> and <wp14:pctHeight>0</wp14:pctHeight> respectively. After editing, the document (now corrupt) contains <wp14:pctWidth /> and <wp14:pctHeight />. So empty values.
When setting the value (0) back on these elements, the document can be opened again, but when you try to edit it in OOS, it will get corrupted again :(.
I think this is a bug in Office Online Server, but I hope above details can help you to get a bit further.
I am trying to build a task-pane add-in for word online which can do mail merge like desktop office. Now I understand that word online does not support mail merge out of the box, so I thought about the following steps -
Create a template (DOTX) using desktop office which will contain Region or something like a merge field etc. Upload the template to one drive.
Open a blank doc and add a task pane add-in in word online. This is temporary step for now.
Click a button on the add-in.
This click will stream the template (DOTX) from server using an app service call.
Render the stream into word online web page.
Edit and save.
Close word online and reopen.
Click the doc link.
This will render the doc in word online.
Add the add-in in the task pane (temp step).
Click edit button.
Call app service to fetch the latest merge data source.
Traverse through the word xml and replace the values corresponding to the region or special keys.
Re-render the doc.
My users will have E1 subscription of office 365.
Is this thought process logical and achievable with word online? Thanks in advance!...
I think your approach is much more complicated than it needs to be. Word Online supports Add-ins created using the JavaScript APIs, as supported by the information in this article: https://msdn.microsoft.com/EN-US/library/office/dn833104.aspx
It should be possible for you to create the "template" on the Desktop (Word 2013 or 2016 is required - but only 2016 supports the current full scope of the JS API) and "insert" your add-in, which links it to the document. Opening the document in Word online should automatically load the add-in, that can then link to the data source and fill in the data.
As data targets ("merge fields"), I recommend you use Content Controls.
We have an existing web application written in Java. We want to give our users the ability to open a Word document that is stored in our application on the server. So when the user downloads the document from our server, Word pops up and they then can edit this document on the client. Once finished editing the document we would like to give them the ability to save this document automatically back to the server where they retrieved it, by simply selecting on the Word Save icon. Similar to how SharePoint does it.
Seems to me SharePoint would be a good solution for this and they do it very well, but unfortunately we cannot use SharePoint in our architecture.
There also seems to be a lot of server-side possibilities that we can use to upload and open word documents from our server, I feel we can solve these use cases easily.
My big problem is the automatic saving of an edited document by the client back to our server where the document was downloaded
I am not Microsoft proficient to know what the best solution would be.
Should we write a Word AddIn to save to our server?
How do we get the Word AddIn into our users desktops?
Can we embed a Word AddIn into the Word document that is opened on the client?
1.Should we write a Word AddIn to save to our server?
If you don't want to use SharePoint you can develop an add-in where you can implement all the required functionality and much more.
2.How do we get the Word AddIn into our users desktops?
You can develop an installer for the add-in. See Deploying an Office Solution for more information. Also you can use the group policy objects for deploying the software automatically.
3.Can we embed a Word AddIn into the Word document that is opened on the client?
You can develop a document-level add-in, i.e. the code will be run for a specific document only. But you will need to install it as an application level add-in. See Architecture of Document-Level Customizations for more information.
I am working to import a visio diagram from a vsdx file which has multiple pages, and it seems there is an app on the office store site to help me with this. Problem is Office Apps is currently disabled in my install of Office Word 2013. How do I enable this please so my apps can load? Thanks in advance
A possible solution:
1)Click file to get to the backstage menu.
2)Then click options
3)Then click trust center
4)Bottom right is trust center options
5)Then click trusted app catalogs on the left selection pane.
6)Look at the check boxes and see if any of those are checked. If so un-check.
You can use Insert->Text->Object->Create from File to import your Visio diagram. The imported object can only display one page at a time, however, but you can double click it to edit and display it in an embed Visio window.
I think the more general approach is export your diagram to some graphic formats and insert to the document. When you make change to the diagram, just export it again, go back to Word, right click on the image and Change picture.
This is probably late, but I had the same problem. What worked for me was going to File in Word and converting the format to a newer format. It had been running in Compatibility Mode because the file I opened in Word 2013 was actually created on Word 2002. So I had to convert it to the 2013 updated format, then save the file after converting, and then the Apps button was enabled! Presto! I hope this helps anyone who comes across the problem. I had NO clue what to do until I read online somewhere.
i have created a VSTO addin in VS 2008 for Office 2007. it loads perfectly when Word is started as a standalone.
i have another application that starts a Word document, using a template and fills up the required details in the template.
The problem is that when Word is started from this application, the addin is not loaded,
and the Event viewer shows an error :
Customization URI: file:///C:/Program Files/S2B/S2B Office 2007 Addin/S2B.Word2007.vsto
Exception: The deployment manifest could not be downloaded because a connection to the network could not be established. Ensure that you can connect to the network, and try again.
the addin files(*.vsto), the manifest files(S2B.Word2007.dll.manifest) and other dlls required for the addin are stored in the "C:/Program Files/S2B/S2B Office 2007 Addin/" folder and there is no network involved in the entire operation.
the addin is independent of the application.
If i start Word standalone, the addin is loaded and if i them create the Template document from the application, then the Addin is loaded and i can use its
functionality, there is no problem here.
Why this strange behavior AND how do is solve the error ??
Haven't tried that particular combination myself, but it almost sounds like an issue with how you're starting Word from the "other" app.
Have you tried starting word, just bare, from the other app, using, say CreateObject, and the automating the load of the template and subsequent new doc? I wouldn't think it'd make a difference, but....
Finally, when you say "i have another application that starts a Word document, using a template and fills up the required details in the template"
Exactly how is the other application starting word? that might provide some clues.