× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Search Google for "RPG FOR WORD" We use this product to do similar
stuff.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Joep Beckeringh
Sent: Thursday, April 19, 2007 2:21 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: RPG and Word ?

David,

There is no way (that I know of) that RPG can talk to Word. What you can

do is create a file and open it with Word. Problem is that .doc is a
proprietary format, so it is not feasible to create a .doc file from RPG

(there is an open source project for accessing Office documents,
especially spreadsheets, with Java, about which Scott Klement has
written a lot, but the Word part of it does not seem to be very useful).

But you can create a .html document (e.g. with CGIDEV2) and open it with

Word. Another option is .rtf (Rich Text Format), but HTML is much better

documented.

If you must do anything with Word, you'll have to program on the PC
side. You could use MS Access, create an ODBC link and program in Visual

Basic. You can access Word and its object model from VB.

Joep Beckeringh



David Foxwell wrote:
Hi everyone,

We have an application that manages the courrier that is sent to our
clients. The text of each courrier is typed in a green screen and saved
in a file for later edition.
Now the boss has discovered the command STRPCO and that instead of
showing a green screen for typing text, we can open a Word document.

Is there any way that, when Word opens, the necessary client
information ( name, address, etc ) can be first written to the document
from the RPG application?

TIA


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.