Sang has asked for the wisdom of the Perl Monks concerning the following question:
The quick fix for testing was to just throw in a 'sleep 5' after the PrintOut command, obviously not the best solution. Is anyone familiar with a way to actually check if the file has finished being sent to the printer? I've checked a bunch of nodes and OLE docs but appear to be missing the fix...
my $Word = Win32::OLE->new('Word.Application', 'Quit'); $Word->{'Visible'} = 1; $Word->Documents->Add; # ... Excel Chart, as GIF, inserted ... $Word->ActiveDocument->PrintOut; # sleep( 5 ); $Word->ActiveDocument->{Saved} = 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::OLE - Wait until print job is queued?
by jlongino (Parson) on Jan 13, 2002 at 12:34 UTC | |
|
Re: Win32::OLE - Wait until print job is queued?
by guha (Priest) on Jan 13, 2002 at 21:34 UTC |