Greetings Again Peter,

You said "or (better), import the WP type library and make Vtable calls to it."

I finally figured out how to import the Corel - WordPerfect Type Library. I found out that the Type Library has a class name of TApplication as Delphi also has, so I had to rename the class name to TWPApplication when importing to avoid any conflict.

I now have TPerfectScript as a component on my palette, but no documentation on how to use it.

Can you tell me what "Vtable" is and how to use it? Or anywhere I can go to find documentation on how to use it?

Or better yet, anyone that has used it to do merging with WordPerfect from Delphi can share how they do it?

Thanks to all who reply...

Mike


----- Original Message ----- From: "Peter Laman" <peter.la...@gmail.com>
To: "Delphi-Talk Discussion List" <delphi-talk@elists.org>
Sent: Friday, January 14, 2011 6:51 AM
Subject: Re: Delphi Mail Merge Component


Ah, you're talking about WordPerfect... I missed, 'Perfect'. The last time I used WP was under MS DOS 6.0... But, if WP has an COM Automation interface,
it should be simple to invoke a macro from Delphi using that.

Something like:

var WP: OleVariant;
begin
 WP := CreateOleObject('progID'); { whatever progID }
 WP.method; { whatever method would invoke your macro }
end;

or (better), import the WP type library and make Vtable calls to it.

Cheers,

Peter

2011/1/14 SoftTech <mi...@softtechks.com>

Greetings Peter,

Thanks for the reply.  We use Word Perfect for all merging.  Is there
anything that would work with that? Any examples or resources on how to do
it?

Mike


----- Original Message ----- From: "Peter Laman" <peter.la...@gmail.com>
To: "Delphi-Talk Discussion List" <delphi-talk@elists.org>
Sent: Friday, January 14, 2011 2:24 AM
Subject: Re: Delphi Mail Merge Component


I would recommend doing this by calling a macro in Word, because then you
don't introduce a dependency of Word versions into your program.

-Peter

2011/1/13 Cameron Cole <came...@cameroncole.com>

A relatively simple way to do this is to create a word macro and run the
macro from the command line via Delphi.  Similar thing can be done with
VBA.
 It isn't as Delphi driven but it works pretty well at least with the
older
versions of word.

On Thu, Jan 13, 2011 at 4:30 PM, SoftTech <mi...@softtechks.com> wrote:

> Greetings All,
>
> Back in days Tim Sullivan had a component called UIL Mail Merge and > it
was
> a great component for merging data with either MS Word or Corel Word
> Perfect. Then he sold it to TMS Software who really have not kept it > up
with
> the later versions of Delphi past 2007.
>
> So my question is, does anyone know of anyone who has a mail merge
> component that works with Delphi 2010?
>
> Thanks,
> Mike
>
> __________________________________________________
> Delphi-Talk mailing list -> Delphi-Talk@elists.org
> http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk
>
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

 __________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

--
MailScanner Virus/Spam/Malware: PASS (GZ)



__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

--
MailScanner Virus/Spam/Malware: PASS (GZ)



__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

Reply via email to