msword

Horizontal Text alignment in Word using OpenXml Sdk 2.0

Hello Everyone, I need another help... My export function exports my report as a table in word. I need to apply horizontal alignment property for each cell. The Code I wrote for exporting is given below. Tbl is a textblock which I am using in my report. I wrote Alignment code here. But doesn't works.. Please help me to accomplish this t...

Can you reposition images in Word 2007 using VBA?

I'm trying to write a macro that will reposition all images in a Word document to, say for example, the very top left hand side of each page. Is that possible? ...

Reporting framework that can export to a word document with editable charts.

Has anyone got any recommendations for a reporting framework, where it is possible to export into a word document and have charts editable inside MS Word. By this I mean the user should be able to double click on the chart and customize it, add trend lines, labels etc.. So far I have evaluated BIRT and SQL Reporting Services, but as far...

How to apply macro at end of every heading in MS Word?

I have a document with various headings (so not necessarily Heading 1 or Heading 2 - but all types of headings). What I'm trying to do is write a macro that will, for example, delete 2 spaces at the end of each heading. For example, we have This is a heading At the end of heading, I will do: Selection.Delete Unit:=wdCharacters, Coun...

Convert Word doc file to docx on a server without Word

I would like to use c# to convert a doc file to docx file. Can this be done without Word on a server? ...

Is there a .Net Reporting tool that uses Office templates?

On the application I am currently working on, we need a way for users to generate reports in Microsoft Word or Excel format (export and print). One of the requirement is that the users would create the report template using a Word or Excel template document. I've tried to google a reporting tool that uses word and excel templates for r...

Exporting to MS Word in Cocoa?

Writing an application in Cocoa that will take input from the user, format it appropriately, and then export it to MS Word. Are there any references or built-in libraries available regarding how to go about this? ...

Word 2007 form fields unprotect document via VBA clears all fields but not in Word 2002 version

I have VBA code that prints a word document generated from a word template with form fields and then has to unprotect it to change the header and print the doc again. When I unprotect the doc to change the content of the header all form fields are cleared. But: When I use a Word 2002 doc that just got saved as the 2007 dotm format everyt...

How do I get the scroll position from Microsoft Word

I want to position an image on the page the user is looking at, however I cannot find how to get the currently visible page/scroll in pixels. Anybody know which object and property could give me that? ...

Access Document Stream from Office Ribbon Code

I am attempting to write an add-in for Microsoft Word 2007. I'd like to create a Ribbon Button that when clicked, gets a FileStream for the current or active document. I would assume that is possible with the Visual Studio Tools for Office. Does anyone have any sample code that would show how to do this? Let me know if you have any ques...

Java API to convert RTF file to Word document (97-2003 format)

Is there any Java API available which converts .rtf files to .doc file (97-2003) format? ...

MailMerge script to merge headers/footers?

I'm writing a script to merge 2 Word templates into 1 master document, depending on some criteria. This is what I have so far: {if mergefield effort_ } = 5 "{ includtext "C:\\1\\PL5.doc"}" ""{includetext "C:\\1\\PL6.doc"}"} The merged doc works fine, but in my PL5 and PL6 files, I have some headers and footers. The merged doc can only ...

Load MS Word files with AJAX

I want to dynamically load (AJAX) the text from some Microsoft Word files into a webpage. So I might have a link to essays I've written and upon mouseover have it load the first few sentences in a tooltip. ...

export a report in ms word(97-2003) without using RTFExporter in jasper reports

I have a report which needs to be exported in pure word format(97-2003) using jasper report. But Jasper uses RTFExporter for exporting report in doc format, wen i read the report using POI, it throws error saying its not pure word. Can anyone help how to generate a report in word using Jasper reports. Please help! ...

Using VBA how to automatically run a Microsoft Word macro after a merge

What do I need to do to get a macro to run after a Microsoft Word document has been merged? We are using the XML or Word ML format in Office 2003. The Merge is not happening inside of the MS Word Application, it is being merge by another application called SIMS by Capita. How can I get the Macro to run after a merge, when the document...

With Java: replace string in MS Word file

We need a Java library to replace strings in MS Word files. Can anyone suggest? ...

How to Run VBA Macro in Word Doc after being Merged by external application

Hello We are using the XML or Word ML format from Office 2003. How do I get a macro to run after a MS Word ML document has been merged by another application (not Word) called SIMS by Capita. How can I get the Macro to run after a merge, when the document is being previewed? ...

How to generate application forms/documents programmatically?

At the moment, we use MS WORD and MS EXCEL to mail merge documents that needs to be sent to multiple recepients. For example, say there is a complaint form where the complainant needs to fill in his/her name, address, etc. So we have a .doc file set up with the content and the dynamic entities set up for mail merging, with the name and ...

How to programmatically enable the "Options..." button in the MS Word Print Setup dialog

I'm trying to display the MS Word "Print Setup" dialog in a VSTO AddIn for Microsoft Word 2003. I can display the dialog box, but the options button at the bottom left corner of the dialog is always disabled as per the following screen capture. The relevant code for what I've done so far is: private void printSetup_Click(CommandBarBu...

How to programmaticaly extract and manipulate images from an Office file ?

I need to extract some images from PowerPoint and Word documents, in order to manipulate them, and after that, put the images back in the MS Office files. Do you know any Java or C++ library that does this? It is better if it's open-source. ...