MSWordUtils

Stable Version 1.3.0 (O11)
Also available for 10
Published on 7 Apr by 
Created on 28 September 2018
Details
Create and manipulate Microsoft word documents (2007 onwards) using DocX (https://github.com/xceedsoftware/DocX)
Read More

Manipulate and generate MSWord documents efficiently.  All changes to a document are recorded and only executed when the document is generated.

The library works with both document templates and blank generated documents.

Operations include

  • insert text, optionally specifying color, font, font size, and style (bold/italic/etc),
  • replace text via text markers,
  • insert text at a bookmark,
  • define and insert a table at a bookmark,
  • insert a picture at a bookmark.

Only works with .NET backend. Uses the DocX library form Xceed underneath.

Provides a library that abstracts MSWord manipulations from the underlying extension so another extension can replace it in future without changing the library interface.

What’s new (1.3.0)

New actions to add text and images to headers and footers:

  • MSWord_InsertInHeader
  • MSWord_InsertInFooter
  • MSWord_InsertImageInHeader
  • MSWord_InsertImageInFooter and
  • MSWord_AddHeadersAndFooters.

AddHeadersAndFooters is not required to be called directly.  If no separate First, or Odd/Even header and footers are required, just specifying empty text will add the default "Odd" header and footer.

Removed the Alignment enum in favour of a text parameter "Left", "Right" or "Center", to reduce unnecessary application object usage.  Note: This is a breaking change.

Added alignment parameter to paragraph and image formatting.

Added formatted text helper action for easily adding 1 or more formatted lines of text:

  • MSWord_InsertTextFormat1
  • MSWord_InsertTextFormat2
  • ...
  • MSWord_InsertTextFormat6

Added helper action for creating MSWordText structure used for formatting text.

Added helper action for creating MSWordParagraph structure.

Fixed underline formatting; it was previously incorrectly named underscore and was broken in the last version update.

Reviews (0)
Category
Libraries
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Stuart Harris who created this component.
Dependencies
MSWordUtils has no dependencies.
Requirements
Platform
11.0.0.200
Database
All
Stack
.NET
Component Consumers
No consumers yet.
Weekly Downloads