Re: Print to printer
Do you know if there's a way to print a file? I'm trying to print an
HTML file, so your solution is good, but doesn't really work for me.
Just reading the HTML file and the printing the content obviously
wouldn't work. I also tried:
>>> printer.write(file('path/to/file.ext'))
but apparently this function only takes strings as parameters.
Thanks.
.
Relevant Pages
- Printing Invoices
... They will be printing to HP printers via IrDA. ... The problem is that I can't format and print my invoices. ... my HTML file to a format that the printer SDK could even use. ... (microsoft.public.dotnet.framework.compactframework) - Re: Python Color Printing
... > I'm pretty desperate to get color syntax printing. ... Plus it doesn't recognize all my fonts. ... You could then print the html file. ... (comp.lang.python) - Re: Printf problem with big numbers....
... But I changed my algorithm, and now work directly in base 2, and ... instead of printing the results in base 10 or base 2, ... strings, and not with numbers, so it is ok. ... Prev by Date: ... (comp.lang.c) - Re: How to find to HTML strings and save them?
... I have a 'reference' HTML file and a 'test' HTML file from which I ... I cannot find a way to pull those 10 strings so I can ... I've tried allsorts but I've been learning Python for 1 week and just ... (comp.lang.python) - Re: $ENV{CONTENT_LENGTH} / STDIN
... > check-boxes and radio groups on the form. ... The idea is to populate the HTML file first with as many hidden ... Prev by Date: ... (comp.lang.perl.misc) |
|