Importing Word Doc to PowerApps and Edit - sharepoint

I am importing a Word Doc through Share Point and only seem to be able to viewonly the document.
Is there a way to import a word doc onto my app and then have the ability to edit it?

Related

Import Word document into Jodit

I made a custom button that uses MammothJS to import a Word document and convert to HTML for Jodit. However, the output is not as good as the native copy/paste functionality of Jodit. Does anyone have a better implementation for importing a Word document into Jodit? Preferably using the native PasteFromWord plugin? https://xdsoft.net/jodit/docs/classes/plugins_clipboard_paste_from_word.PasteFromWord.html

How to duplicate page in a DOCX file with python

I am using python-docx-template and python-docx to create DOCX file with one page. I need to duplicate the page in the document nth times. How can I do this with python?
python-docx doesn't have pages. However, it recognizes sections, so before you load the document with python-docx, make sure you insert section breaks before and after your target page.
However, currently, python-docx doesn't have APIs for grabbing the content of a section. If you really want it, you will have to walk through its underlying XML. You may start looking at it from document.__body, by print(document.__body).
You are basically looking for the contents between w:sectPr. See its documentation here:
https://python-docx.readthedocs.io/en/latest/dev/analysis/features/sections.html

Is there a way to read a word document section by section with c#

I have a word template which has multiple sections( tables, parragraphs, lists, etc.. ). The idea is that users fill the template and upload it to a asp.net application. I need the application to read the information section by section. So, is there a way to name the section of a word document and identify it by using c#?
I think it is much better to create a custom web page for filling fields there and constructing a Word document on the server-side using the Open XML SDK, see Welcome to the Open XML SDK 2.5 for Office for more information.
However, you may consider using bookmarks or content controls as a marker for sections.
Otherwise, you'll need to parse the uploaded document by searching for keywords presented in the template.

Get Custom Document Information Panel metadata within Word

I have created a custom DIP using InfoPath, the XML was generated manually as their is no SharePoint document library available. The DIP was created first by creating the basic XML stucture as a blank InfoPath template and then reimporting the generated XML to create a DIP.
The DIP appears in the word document correctly, however I cannot find a way to use the custom data from the DIP within the word document. The custom fields do not appear in the fields under quick links, neither can I reference the fields manually.
Any help would be much appreaciated.
Andrew
Step 1: design a XML to store all your information.
Step 2: add this XML as a customXMLPart (e.g. using macros: activeDocument.CustomXMLParts.Add(xmlString))
Step 3: insert some content controls in your word document
Step 4: map the content control to your customXML part using XPath expressions. (e.g. activedocument.contentcontrols(1).XMLMapping.SetMapping "myxpath-expression"
step 5: create the DIP in InfoPath using the XML you designed earlier
step 6: in Word indicate you want the new .xsn-file as a DIP
Then the DIP will be able to manage the CustomXML in your document. As the XML is directly mapped to the content controls, editing information through the DIP will immediately change information in your content controls.
Hope this helps. Maybe not for the original poster, but for people who will find this later.

Associating Microsoft word/excel with sqlite

I would like to ask if anyone knows if there is any possible way to associate Microsoft word or excel with sqlite ?
For example, the Microsoft word document is store inside the database.
Inside the Microsoft word document
Dear[Name],
We are pleased to announce you that you have completed [Course].
Thanks
In this Microsoft word document, can the fields [Name] and [Course] be retrieve from other sqlite database table and place inside the Microsoft word document automatically?
Is it possible or is there any other way to implement more feasible? (Sorry I'm tried browsing the web but no relevant results)
Here is an open-source library that gives VBA code access to a SQLite database: http://sqliteforexcel.codeplex.com/.
I haven't tried it personally, but it looks pretty promising. What you would do, is write some simple VBA into you Word/Excel document (take a look at this and this for help with that), and follow the steps on the above link to begin using the library. The download also comes with an example.

Resources