Jan,
Carl's script works fine, but I notice that he is using
a "sleep 5" after the PrintOut command.
Should this be necessary? (Or as you wrote: "that shouldn't be
necessary if the app is correctly written". Does this mean
that Word was not entirely correctly written? ;-)
While I am posting, I would add that the mod.s you suggested
for my colleague's OLE testing code worked perfectly! THANKS!
Christopher
> -----Original Message-----
> From: Carl Campbell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 06, 2001 9:09 AM
> To: 'James E Keenan'; Perl-Win32-Users
> Subject: RE: Printing Files via Microsoft Word
>
>
> #
> # This script will scan for MS Word files, through a specified path,
> # and print them to the default printer.
> #
<SNIP>
> $Word->ActiveDocument->PrintOut({
> Background => 0,
> Range => wdPrintAllDocument,
> Item => wdPrintDocumentContent,
> PageType => wdPrintAllPages,
> });
> sleep 5;
> $Word->Quit();
> $iCounter++;
> }
>
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users