On 7/19/10 1:50 PM, Paul McNett wrote:
> I think this would be equivalent (and more high-level):
>
> {{{
>
> import os
> os.startfile(pdf_file_name, "print")
>
> }}}
>
> I'm going to start making a dabo.lib.reportUtils.printPDF() function, and the 
> above
> will be the method to use on Windows. Not sure what to do on Linux or Mac at 
> this point.

Turned out to be the same command on Linux and Mac:

{{{

import os
os.system("lpr %s" % pdf_file_name)

}}}

I've added the printPDF() function in r5931

Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to