Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Is it possible to print off Excel and Word documents in perl.

by davies (Parson)
on Jul 08, 2014 at 22:16 UTC ( #1092806=note: print w/replies, xml ) Need Help??

in reply to Is it possible to print off Exel and Word documents in perl.

Have a look at Cacharbe's answer to Win32::OLE and Excel and the Web. You will have to print from Excel rather than copying the file to a printer and that printer will have to be installed on the computer running Excel. The classic advice is to record a macro that prints the file and then convert that macro to Perl, but be aware that the recorded macro won't be good VBA and that simply transliterating it won't give you good Perl. If you can't print from Excel, then that's the first thing you need to fix.


John Davies

  • Comment on Re: Is it possible to print off Excel and Word documents in perl.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1092806]
[LanX]: will try infinite loop ...
[Corion]: :START ... goto START
[LanX]: oh .bat you mean?
[LanX]: obscure cult ...
[Corion]: LanX: cmd.exe is just another way to launch Perl
[LanX]: I know its a cult... and I repent it every time
[LanX]: But cygwin comes with path problems and powershell requires too much learning for me
[LanX]: eshell in emacs is often my resort in development

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2017-03-27 15:58 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.