Python Forum
Requirements for html5print module
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Requirements for html5print module
#7
I have danced around this with several different modules and I just haven't been able to get to where I think I should be able to go.

I have a process to produce a label formatted in the manner I wish on html page. What I want to do now is rather than load the page in a browser to print the document directly from the html to a label printer. I'm coming up dry on this so I wanted to run it by everyone to see if anyone is aware of a module that would help me accomplish this.

I'm including the html that I'm using to render the label, but it is pretty straight forward. Since we don't have an 'insert HTML' option, I will insert it as output (forgive me please)...

Output:
<html> <head> </head> <body> <span class='label'> <table style="float: left"> <tr> <td><img src="famous-joke.png"></td> <tr> </table> <table style="float: left"> <tr> <td style = "font-variant:small-caps; font-size:small; text-align:right;">prod #: </td> <td style = "font-size:large; text-align:left;">64312345<br></td> </tr> <tr> <td style = "font-variant:small-caps; font-size:small;text-align:right;">q/pt #: </td> <td style = "font-size:large; text-align:left;">Q-FRONT LEFT TIRE<br></td> </tr> <tr> <td style = "font-variant:small-caps; font-size:small; text-align:right;">desc: </td> <td style = "font-size:large; text-align:left;">Tire front left</td> </tr> </table> </span> </body> </html>
Through a cloudy window,
Kip...

“Progress means getting nearer to the place you want to be. And if you have taken a wrong turn, then to go forward does not get you any nearer.
If you are on the wrong road, progress means doing an about-turn and walking back to the right road; and in that case the man who turns back soonest is the most progressive man.” ― C.S. Lewis
Reply


Messages In This Thread
Requirements for html5print module - by KipCarter - Mar-11-2020, 10:24 AM
RE: Requirements for html5print module - by buran - Mar-11-2020, 04:29 PM
looking for web print module - by KipCarter - Mar-16-2020, 03:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with code / audio is playing randomly, not matching csv requirements Daniel_kcr 2 729 Sep-07-2023, 05:09 PM
Last Post: deanhystad
  when package built, requirements not installed sabuzaki 1 799 Apr-07-2023, 09:01 AM
Last Post: sabuzaki
  What to do when the requirements.txt file does not work Led_Zeppelin 2 6,804 Nov-04-2021, 06:51 PM
Last Post: snippsat
  Examples of Customer requirements ComputerAstronaut 1 1,905 Dec-08-2020, 03:22 AM
Last Post: Larz60+
  requirements file tdwinfre 7 2,908 Nov-06-2020, 06:01 AM
Last Post: tdwinfre
  How to allow user input only if certain requirements are met vininhosts 3 2,458 May-28-2020, 06:15 PM
Last Post: micseydel
  google-auth requirements.txt strange behavior randalpinto 3 3,868 Dec-21-2018, 02:03 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020