Printing HTML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Max

    #1

    Printing HTML

    How can I print (as in laser printer, not the python print statement)
    HTML from Python (actually it doesn't have to be HTML - it's tabular
    data with some rows/columns highlited).

    The project currently uses Python 2.4 with wxPython and pywin/winpy
    (whatever it's called, for MS Access ODBC), so if it can be done easily
    in one of those, that'd be great, but if there's a module which makes it
    a breeze, I'm happy to download that too.

    --Max
  • Rene Pijlman

    #2
    Re: Printing HTML

    Max <rabkin@mweb[DOT]co[DOT]za>:[color=blue]
    >How can I print (as in laser printer, not the python print statement)
    >HTML from Python[/color]

    Is the printer attached to your server, or are you printing over the
    internet?

    --
    René Pijlman

    Comment

    • Max

      #3
      Re: Printing HTML

      Rene Pijlman wrote:[color=blue]
      > Max <rabkin@mweb[DOT]co[DOT]za>:
      >[color=green]
      >>How can I print (as in laser printer, not the python print statement)
      >>HTML from Python[/color]
      >
      >
      > Is the printer attached to your server, or are you printing over the
      > internet?
      >[/color]

      I'm not sure if the printer is attached to the workstation (probably) or
      over the network, but it'll definitely be installed as one of the
      windows printers. (I guess I should have mentioned the fact that I'm
      working for windows - but I did say I was using MS Access and pywin32).

      --Max

      Comment

      • Steve Holden

        #4
        Re: Printing HTML

        Unknown wrote:[color=blue]
        > Rene Pijlman wrote:
        >[color=green]
        >>Max <rabkin@mweb[DOT]co[DOT]za>:
        >>
        >>[color=darkred]
        >>>How can I print (as in laser printer, not the python print statement)
        >>>HTML from Python[/color]
        >>
        >>
        >>Is the printer attached to your server, or are you printing over the
        >>internet?
        >>[/color]
        >
        >
        > I'm not sure if the printer is attached to the workstation (probably) or
        > over the network, but it'll definitely be installed as one of the
        > windows printers. (I guess I should have mentioned the fact that I'm
        > working for windows - but I did say I was using MS Access and pywin32).
        >[/color]
        wxPython has a printing framework that works more than adequately under
        Windows. If you have the wxPython demos installed (nowadays they are a
        separate download) look under "Miscellane ous/PrintFramework" to find
        working code.

        regards
        Steve
        --
        Steve Holden +44 150 684 7255 +1 800 494 3119
        Holden Web LLC www.holdenweb.com
        PyCon TX 2006 www.python.org/pycon/

        Comment

        Working...