Print HTML

Discussion in 'Python' started by GMAN1941, Jul 17, 2013.

  1. GMAN1941

    GMAN1941

    Joined:
    Apr 2, 2013
    Messages:
    4
    Likes Received:
    0
    Location:
    huntsville, al
    using 2.5 - i have a text file in html. i would like to open it in my browser, print to local/network printer, and close browser using python script. is that possible?

    thanks,
    GMAN1941
     
    GMAN1941, Jul 17, 2013
    #1
    1. Advertisements

  2. GMAN1941

    GMAN1941

    Joined:
    Apr 2, 2013
    Messages:
    4
    Likes Received:
    0
    Location:
    huntsville, al
    found the answer
    assume html file name is: "filehtml"
    then:
    os.startfile(filehtml)
    will open the browser and display the html
     
    GMAN1941, Jul 25, 2013
    #2
    1. Advertisements

  3. GMAN1941

    Lokesh Sharma

    Joined:
    Feb 6, 2018
    Messages:
    5
    Likes Received:
    0
    hey,
    firstly the file name is like "filehtml".
    so, os.startfile(filehtml)
     
    Lokesh Sharma, Feb 6, 2018
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.