in reply to Win32::OLE printing

Here is how to print out of Word. Re: Changing the STDOUT Font for word, which while it is not exactly what you want probably indicates how you approach it in general using Win32::OLE

cheers

tachyon

Replies are listed 'Best First'.
Re: Re: Win32::OLE printing
by ixo111 (Acolyte) on Mar 21, 2004 at 22:23 UTC
    jah :) .. Word has a direct PrintOut method - IE doesn't allow for such directly ( or so says MSDN ) so you have to use the ExecWB function ..

    after tinkering around a bit i was able to Almost get it to work using the following code :

    $IE->ExecWB( 23, 1 ); sleep ( 1 ); $IE->ExecWB( 6, 1, 1 );


    thanks to you both for your replies! .. i'll try the ( 6, 2 ) and see if that bears any fruit :)