I willing to learn and willing to read - just point me in the right
direction. I'm getting started on a project to convert about 3000 lines of
macros from WordPerfect 5.1 (Dos) to WordPerfect 7 & 8. I'll also need to
maintain code that performs the same functions in Microsoft Word. We want
to start keeping info in a database (Paradox or Access???) so that it can
be called up and inserted into the documents being created with the macros.
My questions: Whets the best reference material to help get me up and
running? Since I want the same functionality in two different packages,
should I not code in the native macro languages but use something else?
Anything else to get me up to speed would be appreciated.
Thanks,
Dale
I'm trying to do something similar with the following approach: I use
a program developed in Delphi and OLE Automatation to control either WP
or Word. The program has a combo box with the different names of word
processors and, depending on which one has been currently selected by
the user (the selection is stored in the Registry so that the program
remembers it next time is opened), the buttons will inter-act either
with Word or WP. Unfortunately I need bookmarks to send data stored in
the Databases to the documents but this does not work with my Word 97,
but it used to do with Word 95 and does work very well with WP.
As to Databases I use in fact INI files, but recognise I should use
Paradox or Access to make the program usable by other people. With
Delphi use of Paradox is more simple, but I am concluding people prefer
Access (it has got better reputation). I am therefore investigating a
shareware Delphi package (downloadable in www.odbc98.com) containing
controls which allow access to Access from Delphi. If you want any
details of my work, please ask because I am only an amateur programmer
and unless I give away my ideas they will rotten inside me.
-- Gordon
Javier Serra Callejo wrote:
<snip>
Procedure WordBookmarks;
var
WordObj: Variant;
begin
WordObj:=CreateOleObject('Word.Application.8');
WordObj.Visible:=True;
WordObj.Activate;
WordObj.Documents.Open('D:\Mis documentos\Marcadores 99.doc');
WordObj.Selection.InsertAfter('HELLO');
WordObj.Bookmarks('Presidente').Select;
end;