I finally got the program to work. This is what I came up with
use strict; use warnings; use Win32::OLE ; use Win32::OLE::Const 'Microsoft Word'; my $sourcefile='C:\Users\Carl\Documents\AddressMergeTXT.txt'; my $mergefile='C:\Users\Carl\Documents\Merge.docx'; my $template = 'C:\Users\Carl\Documents\MergeLetter.docx'; my $Word= Win32::OLE->new('Word.Application', 'Quit'); $Word->Documents->Open($template); $Word->ActiveDocument->MailMerge->OpenDataSource($sourcefile); $Word->ActiveDocument->MailMerge->{Destination} = wdSendToNewDocument; $Word->ActiveDocument->MailMerge->Execute; $Word->ActiveDocument->SaveAs($mergefile); $Word->Documents->Close(wdDoNotSaveChanges); undef $Word;
Now, can someone show me how to convert the above merged docx file into an eps file using Postscript::Simple? I would like to do it all in the same program.
Thanks again for any suggestions
Carl
In reply to Re: Mail Merge with Word 2007 and Perl
by cmiller2005
in thread Mail Merge with Word 2007 and Perl
by cmiller2005
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |