NewsForge: Formatting Documents with OpenOffice.org Writer Macros | Linux Today

NewsForge: Formatting Documents with OpenOffice.org Writer Macros

Written By
Web Webster
Web Webster
Sep 20, 2004

“Around the time OpenOffice.org 1.1 RC was released, I was
migrating a small company from Corel WordPerfect to OpenOffice.org.
OpenOffice.org by itself does not support reading or writing
WordPerfect files, but a tool called wpd2sxw can convert
WordPerfect files to OpenOffice.org format (SXW). After conversion
with wpd2sxw, which was rather good but had problems with some
formatting features, I applied macros to documents based on
different templates to make more than 2,000 converted documents
look very similar to original WordPerfect files they were generated
from. This article presents some macro ‘building blocks’ you can
use to modify a document’s formatting or to generate well-formatted
documents from plain text files.

“OpenOffice.org uses StarBasic as its macro language. I won’t go
into details of the language itself, but the examples given here
should be easy to understand if you have some programming
experience. You can find tutorials and general information
regarding StarBasic macros, along with information on
OpenOffice.org scripting, elsewhere on the Web…”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.