Christian Démolis wrote:
> Hello everybody,
>
> I have a problem about win32api.ShellExecute. I want to print multiple 
> pdf files using ShellExecute
>
>         for s in self.ListeDesCheminsPdf: # On envoie à l'impression 
> les différent pdf qui sont sur le disque
>             win32api.ShellExecute(0, "print", s, None, ".", 0)
>
> It works but the files is not in order when it comes out of the printer.
>
> Does anyone has a solution to keep order safe when printing???

sortedNames = list(self.ListeDesCheminsPdf)
sortedNames.sort()
for n in sortedNames: ....

-- 
Bob Kline
http://www.rksystems.com
mailto:bkl...@rksystems.com

_______________________________________________
ActivePython mailing list
ActivePython@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to