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

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,364
    Ice Demon
    Jul 15, 2003
  2. Bad_Kid
    Replies:
    3
    Views:
    4,137
    Shawn H. Mesiatowsky
    Apr 7, 2005
  3. Bryan Shaw

    Lock Print Screen and File Print

    Bryan Shaw, Apr 19, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    4,192
    Kevin Spencer
    Apr 20, 2005
  4. EDom
    Replies:
    0
    Views:
    569
  5. Arun Kumar Srinivasan

    Using javax.print classes to print text/file

    Arun Kumar Srinivasan, Jan 13, 2004, in forum: Java
    Replies:
    5
    Views:
    6,822
    Gregory A. Swarthout
    Jan 14, 2004
  6. Sam
    Replies:
    1
    Views:
    832
    seigo
    Nov 10, 2006
  7. keto
    Replies:
    0
    Views:
    1,362
  8. David Cournapeau

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

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