Convert MathML to MathType in MS Word

I am writing a converter from XML&MathML to MS Word document. I'm using MFC and Word automation, so there's no problem in writing text like this: _Application app; COleVariant...

OpenXML 2 SDK - Word document - Create bulleted list programmatically

Using the OpenXML SDK, 2.0 CTP, I am trying to programmatically create a Word document. In my document I have to insert a bulleted list, an some of the elements of the list must be underlined. How...

Does or Can VBscript's SendKeys support Unicode?

I am finding that VBscript's SendKeys does not support Unicode. It supports some like A-65, but not foreign letters like the letter Aleph (א) from the Hebrew alphabet. Prob outside its supported...

Check if people picker field is empty with jQuery?

I have the following HTML <tr> <td> <div id="ctl00_m_g_c6ae303a_6013_4adb_8057_63a214bcfd24_ctl00_ctl04_ctl08_ctl00_ctl00_ctl04_ctl00_ctl00_UserField_upLevelDiv" TabIndex="0"...

Syntax for Word Automation in C#

I am trying to create a heavily formatted word document in C# using Word Automation. I am having trouble finding the syntax for many of the operations I would like to accomplish. I have tried...

What is a correct MIME type for .docx, .pptx, etc.?

For older *.doc documents, this was enough: header("Content-Type: application/msword"); What MIME type should I use for new .docx documents? Also, for pptx and xlsx documents?

Add/Create new document in SharePoint document Library programmatically

I have created a new Document Library and set up custom content type with MS Word Document Template. When i click on Create new template it works fine. but i need to be able to add some logic on...

Inserting MathMl , Tex or LaTex equation in MS word .docs?

I've been looking for some dll for .Net in C# for inserting any of MathMl , Tex or LaTex equations in MS Word, I tried some like DocX but they failed, do you know any? or any hint how to it? thanks

How to write a Float Mat to a file in OpenCV

I have a matrix Mat B(480,640,CV_32FC1); containing floating values..I want to write this matrix to a file which could be opened in notepad or Ms word or Excel to see the values inside and for...

Swap/invert the order bold not-bold bold not-bold // to // not-bold bold not-bold bold

I can't figure out how to swap/invert these... I have: H34 Today is H3 going to be H8314 warm! H22 Nice, H831 sunny H5921 and H6 a beautiful H815 day? H730 So H43 I H1 will H921 go ...

VBA (Loop and formating troubles) Excel to Word paste and print

I'll be as brief as I can to not make it overcomplicated. I need to copy name and last name from Excel, paste it into Word template and print. I have a huge excel file which I need to copy two...

Best practices to debug broken OpenXML word document in C# generation

I'm generating a MS Word document with OpenXml package in C#. Many times I've seen this erorr message: This error message is pretty useless: all it says the problem is in footer. Most of the...

Word VBA getting Project is Unviewable error

When I try to edit or step into my VBA code for debugging purpose I get "Project is Unviewable". I have created .dotm file at location (C:\Users\UserName\AppData\Roaming\Microsoft\Word\STARTUP).

Why is it that "No HTTP resource was found that matches the request URI" here?

I have code in my controller like so: [Route("api/deliveryitems/InsertIntoPPTData/{stringifiedRecord}")] ...and I'm calling it via Postman like so: ...

How to export html page to ms. word (.doc) with external CSS?

I want to export html page to .doc format with external CSS. I'm using jQuery.wordexport.js and FileSaver.js. This is what I want to export: <div id="export">Content</div> And this is the...

POLYGLOT >> ValueError: Package u'pos2.ms' not found in index

I learn to use polyglot to give POS tag Indonesian texts. import polyglot from polyglot.text import Text, Word text=Text("Menurut dia, Syahganda, dikenal sebagai penggiat isu-isu pertanahan...

Return to Word vba the result of a python script called by the vba macro in Windows

I know how to use vba in MS Word in Windows (7 or 10) to run a python script. Here’s one example: RegExpPatrn = "[RegExp search string]" PythonScriptFullName = Chr(34) &...

Word VBA - CompareDocuments - How to check Revisions object's contents

After comparing word documents with Application.CompareDocuments method, I need check all revisions found to keep only those 'real' text changes. Thanks

MS-Word equation editor: How do I add an exponent to the left of its base

In spectroscopy it's common to have expressions like I need to insert the superscript "2" from the picture, within an equation. However in MS-Word equation editor, I can only add exponents to the...

Microsoft Word: Unspecified Error Location: Part: /word/document.xml, Line 0, Column 0

I've got a word document with the error listed above when I try to open it. I've tried several document recovery tools, but not had any luck. Other similar questions, (primarily with differences...

Add header row to listbox

I am using listboxes to display data in userforms in word. However I am not able to set header captions or figure out how to make it possible to click on the header to sort by that...

Add Header and Footer to mulitpage word doc VBA

I am trying to add a header and a footer to each page of a word document via a macro. I have tried a few different methods such as iterating through each shape on the page but in that case , the...

Remove Hebrew vowels (nikkud) from selected Unicode Hebrew text

I want to select a string of Unicode Hebrew text in a Word document and remove the Hebrew vowels (aka nikkud) without changing anything else. I need to remove Unicode characters in a given range...

Adding document property field to footer removes existing page numbering

I am tying to stamp a document variable field in the footer of every page in a document. I have figured out how to add the field. However, in doing so, the page numbering field that already...

Run a Word VBA Macro with Python

I am trying to call a Word macro using Python. I tried to adopt the logic used to run Excel VBA Macros through Python (there are plenty of examples of how to run Excel Macros through python, but I...

Inserting watermark in Word

I would like to insert a watermark into a Word document using Office.js. I am able to insert the watermark DRAFT using the sample code from: ...

Skip error "The document caused a serious error the last time it was opened"

Is it possible to skip error "The document caused a serious error the last time it was opened"? I use Excel to opening Word files. I would like to prevent situation, when e.g. pc reboots while...

VBA PDF File Upload Using HTTP POST

I'm trying to upload a file to a .NET Core API using VBA code from a Word template. When the API receives the request, the file has a length of 0 and therefore any file I send to it becomes...

Getting the List Numbers of List Items in docx file using Python-Docx

When I am accessing paragraph text it does not include the numbering in a list. Current code: document = Document("C:/Foo.docx") for p in document.paragraphs: print(p.text) List in docx...

Saved Word document opens as blank document (Solved)

tl;dr; Try right click on your document and select Toggle Field Codes option. If your text appears, it means you converted your document to code. Hello everybody! I just had this problem with...