in reply to Mail Merge with Word 2007 and Perl
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mail Merge with Word 2007 and Perl
by roboticus (Chancellor) on Aug 19, 2014 at 17:57 UTC | |
by cmiller2005 (Initiate) on Aug 20, 2014 at 13:46 UTC | |
by roboticus (Chancellor) on Aug 20, 2014 at 14:50 UTC | |
by cmiller2005 (Initiate) on Aug 21, 2014 at 02:22 UTC | |
by GrandFather (Saint) on Aug 21, 2014 at 02:37 UTC | |
by roboticus (Chancellor) on Aug 21, 2014 at 22:59 UTC | |
|