For Programmers: Free Programming Magazines  


Home > Archive > Cobol > February 2006 > Re: ouvrir un document word à partir d'un









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: ouvrir un document word à partir d'un
James J. Gavan

2006-02-20, 6:55 pm

2jo wrote:
> Thanks for your answer James J. Garvan, I'm using Micro Focus.
> I found how to open a Word document.
> But this question was just the first step...
> What I want to do is a mass mailing.
> I extract data from my data base and I put them in a text file
> (name.txt)
> how can I do in my COBOL program to do this automatically?
> I've search in Micro Focus web site but I didn't find what I needed.
> at this time I can open a word document, write in it, and print it...
> Can you help me?
>
> I'm sorry for my bad english...
>

Your English is tres bien !

OK so Micro Focus and presumably Net Express. If you can find from the
M/F site a section on White Papers there's a paper from Wayne Rippin -
which outlines using both MS Word and Excel. (If you have difficulty in
finding it, join the M/F Forum and post a question under Net Express).

Another thing you can do from the N/E IDE :-

Main Menu Bar-->Tools-->Type Library Assistant--->Listbox

Work you way down the Listbox until you come to Microsoft Word. You are
then able to extract a HUGE text file of all methods that apply to MS
Word, giving all available syntax, Open a File, Save a File etc. To get
a quick handle on what the extracted document contains, from the IDE use
"method-id" as your search key and you can zip through all the methods
available.

Are you already familiar with Word ? To do a mailing you have to create
a Master Template document in MS word which contains the info you want
to send. Haven't done it, but your template contains 'markers' where you
want address information to be placed. In Word you now produce a second
document that contains the list of addresses to be added, (just
include that info you currently have in your text file, but according to
the MS Word merging rules). You will have to check out the MS Word
documentation on MERGING - then apply the appropriate methods with
invokes from COBOL.

Jimmy
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com