Op Monday 1 Jun 2015 02:53 CEST schreef Dennis Lee Bieber: > On Sun, 31 May 2015 19:06:40 +0200, Cecil Westerhof > <ce...@decebal.nl> declaimed the following: > >> >> By the way: because of the lpr my script only works on Linux (and >> probably Unix and Apple). Can I rewrite it in such a way that it >> also works with Windows? Someone else has to test it then, because >> I do not have a Windows computer. > > Not easily... Either you install something like cygwin which MAY > include LPR, or... > > 1) You invoke (instead of LPR) some application that accepts a > command line argument telling it to do a print (I'm pretty sure that > long ago M$ Word accepted a command line /p to print, but it seems > that has gone away replaced with something uglier -- notepad /p > <file> works for simple text files... I managed to get Acrobat > Reader to open a PDF and bring up a print requester, but that path > still required the user to hit a number of dialog windows) > > 2) You incorporate win32 system calls to manage a print job in all > details (create bitmap, provide bitmap to print driver, etc.)
Well, at the moment I will not bother about it then. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof -- https://mail.python.org/mailman/listinfo/python-list