Has anyone generated barcodes output within DTML?
Hi, It is a simple question, has anyone generated barcodes output within DTML? I am just starting to reseach this and I know there are different formats. I tried googling but I did not find this type of integration. My customer prints out a shipping manifest and work like to add the barcode on this paper output. Thanks in advance, Larry
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --On 4. Dezember 2006 15:30:31 +0000 larrymcdonnell@att.net wrote:
Hi,
It is a simple question, has anyone generated barcodes output within DTML? I am just starting to reseach this and I know there are different formats. I tried googling but I did not find this type of integration. My customer prints out a shipping manifest and work like to add the barcode on this paper output.
DTML has really nothing to do with bar-codes. You might check for some Python package or some external barcode generator programm that could be integrated with Zope somehow. - -aj -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFdEJUCJIWIbr9KYwRAiqsAJ4jwxKIV/56dxhEwTxMxH2NNpWfPgCdE8ds 2FOzC0Q1TVO3g5W5brl1YJI= =x4SR -----END PGP SIGNATURE-----
On 12/4/06, larrymcdonnell@att.net <larrymcdonnell@att.net> wrote:
It is a simple question, has anyone generated barcodes output within DTML? I am just starting to reseach this and I know there are different formats. I tried googling but I did not find this type of integration. My customer prints out a shipping manifest and work like to add the barcode on this paper output.
Just use a python barcode generator and include it as an image in the generated HTML. Some links to get you started with the py barcode code part: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/426069 http://www.cgpp.com/bookland/ You could also hack GNU barcode into Zope (http://www.gnu.org/software/barcode/barcode.html) but that'd be a bit harder. Perhaps there is a python interface GNU barcode, though I haven't found one yet. -- Martijn Pieters
On Monday 04 December 2006 9:30 am, larrymcdonnell@att.net wrote:
It is a simple question, has anyone generated barcodes output within DTML?
Sure! I cheated by making a GIF of every barcode digit, then in my page, I just print the image tags in order. Ain't fancy but it's been working perfectly for several years. I factored the actual code into a Python script that also knows how to generate checksum digits if desired, but you might not need that. -- Kirk Strauser Daycos
larrymcdonnell@att.net wrote:
It is a simple question, has anyone generated barcodes output within DTML? I am just starting to reseach this and I know there are different formats. I tried googling but I did not find this type of integration. My customer prints out a shipping manifest and work like to add the barcode on this paper output.
You really want to take a look at reportlab. Generate your shipping manifest as a pdf. The reportlab barcode stuff is really really good (he says, having just finished the first stage of a label-with-barcode generation app that just happens to be Zope 2 based ;-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (5)
-
Andreas Jung -
Chris Withers -
Kirk Strauser -
larrymcdonnell@att.net -
Martijn Pieters