Gerard has asked for the wisdom of the Perl Monks concerning the following question:
Note: I used *.cdm as the extension as it was recomended to use something that word did not recognise so that it would not automatically assume the field and recorde delimiters. When I do this word brings up a dialog box asking me to select the delimters. "|" for field and "~" for record. Does anyone know how I can tell word what these are and thus avoid this intrusive dialog box? Look forward to hearring your wisdom. Cheers, Gerard.my $datasource="somelocation\\somefile.cdm"; my $savelocation="somelocation\\somefile.doc"; use strict; use Win32::OLE ; use Win32::OLE::Const 'Microsoft Word'; my $Word= Win32::OLE->new('Word.Application', 'Quit'); $Word->Documents->Open($template); $Word->ActiveDocument->MailMerge->OpenDataSource($datasource,); $Word->ActiveDocument->SaveAs($savelocation);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32:OLE and Word Mail Merge
by zakb (Pilgrim) on Oct 16, 2001 at 10:38 UTC | |
by Gerard (Pilgrim) on Oct 16, 2001 at 16:14 UTC | |
by Gerard (Pilgrim) on Oct 16, 2001 at 10:57 UTC | |
|
Re: Win32:OLE and Word Mail Merge
by cacharbe (Curate) on Oct 16, 2001 at 16:32 UTC | |
|
Re: Win32:OLE and Word Mail Merge
by drinkd (Pilgrim) on Oct 16, 2001 at 16:54 UTC | |
by Gerard (Pilgrim) on Oct 17, 2001 at 11:30 UTC |