Print HTML

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

  1. GMAN1941

    GMAN1941

    Joined:
    Apr 2, 2013
    Messages:
    4
    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. Advertising

  2. GMAN1941

    GMAN1941

    Joined:
    Apr 2, 2013
    Messages:
    4
    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. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mitchua
    Replies:
    1
    Views:
    7,151
    Ice Demon
    Jul 15, 2003
  2. Bad_Kid
    Replies:
    3
    Views:
    3,976
    Shawn H. Mesiatowsky
    Apr 7, 2005
  3. Sam
    Replies:
    1
    Views:
    685
    seigo
    Nov 10, 2006
  4. keto
    Replies:
    0
    Views:
    1,043
  5. David Cournapeau

    print a vs print '%s' % a vs print '%f' a

    David Cournapeau, Dec 30, 2008, in forum: Python
    Replies:
    0
    Views:
    399
    David Cournapeau
    Dec 30, 2008
Loading...

Share This Page