in reply to printing MSExcel file?

Thanks, all, but I'm still having no luck: the default printer (powered up) just sits there staring back at me, though I don't receive any Perl errors any longer. Could it be that the printer isn't selected correctly? I'm trying all sorts of variations of: $printer = "c:\\Progra~1\\Micros~1\\Office\\Excel.exe \/p"; $file = "Book1.xls"; system ($printer $file) or die "cannot"; On a side issue, how do I get a d@%! newline into my posts here? Thanks again, cypress

Replies are listed 'Best First'.
Re^2: printing MSExcel file?
by roboticus (Chancellor) on Dec 02, 2007 at 23:14 UTC
    cypress:

    Have you run it from the command line exactly as you're trying to call it from perl?

    Is it putting anything in the print queue? I had an app once that I worked on and nothing printed ... until someone put the proper paper size in. I had the wrong paper size for it, and they just kept piling up.

    Oh .. and for the last question, just use a <p> to insert line breaks.

    and use a <c> to start your code statements so it doesn't reformat it for you
    and then a </c> to end the code section.

    ...roboticus