|
LAUNCHER 400 Office / Word Module
Creating a Word document with LAUNCHER/400 Office
Two ways are available, using LAUNCHER/400 Office to generate a Word document with data from an AS400 database: Mail Merge functions, and text inserting using bookmarks.
Word documents are based on templates, filled with database data by AS/400 programs.
Resulting documents can be displayed, printed, sent by Email or saved.
Functionalities
|
Mail Merge Functionalities
|
|
- This is the easiest way to generate a Word document from a database.
It can be summarized to the use of LNCPRTDOC command.
It covers most of the requirements when migrating Office Vision applications.
- The data to insert in the Word document must be stored in a database file, or requested by a query or SQL statement.
When designing the Word document template , command LNCPRTDOC links the Word document to the data source.
The designer edits the document template. Using only Word's tools, he can insert the link to the database fields, as well as conditional expressions.
When running, AS/400 program transfers the updated data into the PC, and launches the merging process.
- Word creates a new final document that can be saved, printed, displayed or send by email or fax.
|
| |
|
Insert text using Bookmarks
|
|
- With Microsoft Word, a bookmark is a named location within the document.
At any time, a user or an application can move the current position in the document, to another identified bookmark position.
- A bookmark can refer to a single character or some selected characters.
While creating the template, the developer sets the bookmarks at positions where the program will insert the data. The names allowed to the bookmarks will be used by AS/400 program.
- Characters formats and paragraphs properties are set in the template. The bookmark defined positions are pre-formatted so that the inserted data will appear in the requested format.
When running, the application moves the current position to each bookmark, and transfers the data to be inserted.
Breaks or digital data formats commands can be included in data sent by AS/400 program.
- The bookmarks are also used to insert images, or any other text and object.
The use of bookmarks make it possible to locate anywhere in the document, including pages headers and footers, watermarks and table.
|
| |
Next Example >>
|