samedi 25 avril 2015

print a html page using python [duplicate]


This question already has an answer here:

I have a html page.

#test.html
<html>
    <body>
        This is print using Python
    </body>
</html>

I want to print this test.html using python code. Hoe can we send html file to printer to print ? I want to create a function which I will assign to a button. After user clicks the button, HTML page will automatically get printed on the default printer. It needs to render as browser.


Aucun commentaire:

Enregistrer un commentaire