msword

Programmatically Generate .bin file

Hi All, I need to generate the .bin file for a word marco programmatically. Is it possible ? Regards, Francis P. ...

Word is trying to recover

Hi, We are currently processing big word documents in c# program. During processing i am getting message "Microsoft Windows has stopped working". The program reads the word document based on the comments added to the document and processes the images and other text in the document and also creates lot of independent word documents with ...

MS-Word to iXBRL

Hi, I need to develop a MS-Word plug in application using VS2008 that converts a docx file having content controls to iXBRL format. iXBRL format is a relatively new financial statement standard. Are there any APIs to help me out or can anyone give me idea to go ahead with it? Thanks in advance. Regards, Saubhagya ...

How convert a HTM document to DOC using Java?

I have a HTM document generated in Java and I want to convert to MS Word document. If I try open the HTM document with MS Word, show me a pop-up with an advertisement and I don't want that. I want that the document show it directly. Thanks for your help! ...

Rendering RDLC report to Word without "Different First Page" being checked in the header?

I have a very simple RDLC report which contains a header and a table. This displays fine on the web, and exports correctly to PDF, but when I export to Word the header only shows up from the 2nd page onwards because "Different First Page" is checked. "Show Header on First Page" and "Show Header on Last Page" are both checked, although ...

How to enumerate word document using office interop API?

Hello everyone, I want to traverse through all the elements of an word document one by one and according to type of element (header, sentence, table,image,textbox, shape, etc.) I want to process that element. I tried to search any enumerator or object which can represent elements of document in office interop API but failed to find any. ...

Wrap text in dataframe in R- or in output cell to Word

I am working in R, trying to export a dataframe to MS Word. I am using R2wd and would like a dataframe to export to MSWORD, and wrap a long string of text within a cell. Is that even possible? Bare minimum at least pass a command from R to set the height of each row to fit the contents of the cell... I don't see any demos or document...

How to: create .doc files using templates with django/python

Hello, I am writing a django application and there is something I don't know how to do. Say you have a database with users and several .doc files you might want to send to those users (postal letters, not electronicaly). I am wondering if there is a way to automatically create those letters from templates using my user database to fill ...

Can I access the Standard Word Ribbon Tabs while within a VSTO Word Addin?

This seems to be something that should be very straight forward, but I'm unable to find the Word Ribbon after the addin starts. There is a collection of Ribbon objects on the ThisAddIn object, but of course those are the ribbon objects that I've created and use specific to my addin. What I want access to is the overall collection of Ri...

Decompress "wmz" file

Hi, When we try to save msword doc file as html file we get "wmz" files for the math equation objects. I tried decompressing the wmz file and saving the content as jpg. I can open this jpg file in the "Microsoft Picture manager" properly. But trying to open the file in browser displays the error message "The image cannot be displayed, ...

Extract data from nested tables in pdf (c#)

I have a few pdf files that were created from word or excel files. I need to get the information thats in the tables. The text in the document is not an image so I'm able to extract the text using tools such as pdfbox. When I have the text I have no way of knowing what cells in the table it belongs to because I don't know where the tab...

Pasting a huge excel document in a word test script

Hi, I have a UAT test script for which I need to post some reference tables (excel sheet) in the appendix. The excel sheet has a lot of columns and doesn't fit into the MS Word document even when I paste the table in the landscape page set up. Is there any good way to paste such a huge table without making things too complex. I've trie...

VB macro or office addin for mac

Hi, Currently we developed a VB macro for word. While we tried to use it on mac it failed with message "VB Macro not supported in mac". Is there a way to c# office add-in for mac? My requirement is to have a simple utility to add comments(read from user) to the selected text in the current word document. Also need the functionality of th...

docx "File is corrupt" error in Microsoft Word

I wrote a program, which open docx package and changes some <w:t>-text in "word/document.xml". When i open new generated docx in Microsoft word, it gives me an error — "file is corrupted". But if look in "Open XML SDK Tool" diffs between template docx and result docx files — there is only two line changed in "word/document.xml". Look at ...

Word Open XML Mail Merge

I'm attempting to manually create a mail merge using Word's XML (from Word 2007). I have the following XML which isn't working: <w:mailMerge> <w:mainDocumentType w:val="catalog" /> <w:linkToQuery /> <w:dataType w:val="native" /> <w:connectString w:val="Provider=SQLOLEDB.1;Integrated Security=SSPI;Initial Catalog=TheServ...

VBA: Word 2010 - Close Header & Footer Tools with VBA

Hello, I'm using a macro, which inserts a text into the footer. After the macro has finished, the Header & Footer Tools are active, so I'm in the editing mode for the footer. Does anyone know how to close this editmode with VBA? Thanks ...

Open XML - Incorrect Format

In relation to this post I've been working heavily with Word's Open XML and the libraries available. What seems to be unknown to most is that there is some great resources out there for programatically dealing with the Open XML format for Word (and I don't mean manually writing out XML to the filestream!). My question is regarding some...

New documents from template are not running template code

I have a Word 2000 template (protected, code signed, etc). This is used to create new documents, which works on Word 2000. It used to work in Word 2007 too, but within this last week or two the the documents created by Word 2007 are failing to run the macros in the template. Opening the template itself runs the code, so it's not an issue...

Word 2003 XML: Looking for XSL or XSD to render the document in browser

I've used OpenOffice 3.2 to convert a word doc into Microsoft Word 2003 XML. I am looking for and XSD or XSL that I can append to the document to show it in my browser. Can anyone point me in the right direction> ...

Access Active Document in VBA when document is opening on the intranet

We have old Word templates that were originally written for Word 97. For each new version, we've updated the templates. Now we'll go from Word 2003 to Word 2010, and of course there are problems. The template contains the following code: Private Sub Document_Open() On Error Resume Next If ActiveDocument.Type = wdTypeDocument Th...