Printing on Win32

2009-12-16 Thread Jon Bjornstad
Esteemed Perl-Win32 people, How do I send a plain ASCII text file to the default printer from a Perl program? Win32::Printer has been discontinued (or so says CPAN) and as far as I know it is not available from activestate.com for Perl 5.10. I need to do this from XP, Vista, and beyond.

Re: Printing on Win32

2009-12-16 Thread Justin Allegakoen
2009/12/16 Jon Bjornstad j...@logicalpoetry.com Esteemed Perl-Win32 people, How do I send a plain ASCII text file to the default printer from a Perl program? Win32::Printer has been discontinued (or so says CPAN) and as far as I know it is not available from activestate.com for Perl 5.10.

RE: Printing on Win32

2009-12-16 Thread Ken Cornetet
I don't know how to send to the default printer, but to send ascii text to a windows printer, you can share the printer, then open the share just like a normal file. You may have to send a final form-feed character to get the last page out of the printer. Open FILE

How to simulate VB Casting for $perl_objects via Win32::OLE?

2009-12-16 Thread w...@serensoft.com
Hi -- Short version: how can we simulate .NET/VB object-type CASTing, in Win32::OLE Perl? Long version: We're building a bridge between a java-web-app and a .net-based-desktop app. Perl is the glue language of choice, of course :) Where we've got trouble is that the .net programmers tell us we

RE: How to simulate VB Casting for $perl_objects via Win32::OLE?

2009-12-16 Thread Jan Dubois
Win32::OLE uses late binding (the IDispatch interface, aka OLE Automation); there is no such thing as casting to different objects as there is only a single IDispatch interface per object. This is the same as using Jscript or VBScript, but not VB or C++ which normally use early binding. It

PerlScript OLE browser [was How to simulate VB Casting for $perl_objects via Win32::OLE?]

2009-12-16 Thread w...@serensoft.com
Thanks Jan. We've got the .NET wonks working on just this approach. BTW... what does it take to get the PerlScript OLE browser to work? I tried a quick test (below) and PerlScript is working in IE, but the OLE browser frames are all empty except for the default could not load gripe at the bottom.

RE: PerlScript OLE browser [was How to simulate VB Casting for $perl_objects via Win32::OLE?]

2009-12-16 Thread Jan Dubois
Ok, here is what Graham from ActiveState support tells me: You may also need to go to the Security tab in the Internet Options, select Local intranet and click on the Sites button. Then disable the Automatically detect intranet network and instead select the individual choices underneath