Top "Ms-word" questions

For programming questions related to Microsoft's "Word" editor.

How do you display code snippets in MS Word preserving format and syntax highlighting?

Does anyone know a way to display code in Microsoft Word documents that preserves coloring and formatting? Preferably, the method …

ms-word
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 …

excel ms-word ms-office powerpoint mime-types
How do I convert Word files to PDF programmatically?

I have found several open-source/freeware programs that allow you to convert .doc files to .pdf files, but they're all …

c# vb.net pdf ms-word
How do I render a Word document (.doc, .docx) in the browser using JavaScript?

I have successfully done code to display a PDF file in the browser instead of the "Open/Save" dialog. Now, …

javascript browser ms-word
What is the best way to insert source code examples into a Microsoft Word document?

I have to write some documents that will include source code examples. Some of the examples will be written from …

ms-word
Return multiple values from a function, sub or type?

So I was wondering, how can I return multiple values from a function, sub or type in VBA? I've got …

function vba return-value ms-word
Create auto-numbering on images/figures in MS Word

I have MS Word document which contains around 50 images with caption. My problem is if I am inserting images in …

image ms-word document
How to convert HTML file to word?

I need to save HTML documents in memory as Word .DOC files. Can anybody give me some links to both …

html ms-word
Is there a Java API that can create rich Word documents?

I have a new app I'll be working on where I have to generate a Word document that contains tables, …

java ms-word docx doc
Convert Word doc, docx and Excel xls, xlsx to PDF with PHP

I am looking for a way to convert Word and Excel files to PDF using PHP. The reason for this, …

php excel ms-word pdf-generation