Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: how to print through Win32::Ole

by Sec (Scribe)
on Feb 24, 2005 at 11:06 UTC ( #434013=note: print w/ replies, xml ) Need Help??


in reply to how to print through Win32::Ole

I'm no Win32::OLE guru. From what i gleaned from the documentation this should do the trick:

use Win32::OLE; my $ie = Win32::OLE->new("InternetExplorer.Application") or die "oops: ".Win32::OLE::LastError(); $ie->{'Visible'}=1; $ie->Navigate("http://www.perlmonks.org/"); sleep(1); $ie->ExecWB(6,0);
If you use $ie->ExecWB(6,2); it should print without popping up the print preferences dialog (not tested, because i don't have a printer right now)


Comment on Re: how to print through Win32::Ole
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://434013]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2015-07-04 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls