<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need help using PCL to print barcode in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741737#M37293</link>
    <description>You need a programming manual for your printer, or at least know the PCL compatibility level and find that PCL programming guide. The fact that you're at least getting something to print is good.&lt;BR /&gt;&lt;BR /&gt;I've never set up this specific printer, but have dealt with many other brands/models, so this is general PCL information.&lt;BR /&gt;&lt;BR /&gt;You seem to be confusing the FONT, SYMBOL SET and TYPEFACE commands, and there are some typos in the examples.&lt;BR /&gt;&lt;BR /&gt;(assuming the leading Escape and single commands)&lt;BR /&gt;&lt;BR /&gt;Use Fixed Spacing:  (s0P&lt;BR /&gt;&lt;BR /&gt;In all but the very last command, you are sending Symbol Set ID= 0Y as (0Y and this is fairly common, but you'd need to know what's in your printer.&lt;BR /&gt;&lt;BR /&gt;In the first command you list, you're using Proportional spacing (s1P and sending the Font ID in the Typeface command (b#T where # should be the Typeface rather than Font, if that's what you want to do. The Font command is (#X where # is the Font ID.&lt;BR /&gt;&lt;BR /&gt;In the second and third, you send a lower case o in the Typeface command as (boT and it should probably be a zero (b0T and I don't know what &lt;ESC&gt;*25531X is supposed to do. If you are selecting Font 25531 it should be (25531X&lt;BR /&gt;&lt;BR /&gt;The fourth example is very close to what I use for an HP PCL printer. It uses the common Bar Code Typeface and Symbol set so maybe the wrong font is active.&lt;BR /&gt;&lt;BR /&gt;Without having your printer to play with, that's about all I can give you.&lt;/ESC&gt;</description>
    <pubDate>Fri, 21 Jan 2011 20:18:38 GMT</pubDate>
    <dc:creator>Doug Phillips</dc:creator>
    <dc:date>2011-01-21T20:18:38Z</dc:date>
    <item>
      <title>Need help using PCL to print barcode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741734#M37290</link>
      <description>&lt;!--!*#--&gt;I am writing a report that is called from a web page to print out 3 of 9 barcodes.  I am having trouble getting the barcodes to print correctly.  I have tried finding some documentation on using PCL, but have not found much for barcodes.  I found some bits and pieces of code to use.  The printer I am testing on is a Lexmark x544 and it says it has C39 Narrow, C39 Regular, and C39 Wide fonts on the printer.&lt;BR /&gt;These are the different pcl codes I have tried, but they don't print out a full barcode:&lt;BR /&gt;&lt;BR /&gt; CHAR(27) + '(0Y' + CHAR(27) + '(s1p12v0s0b32772T*ABCDE123*' + '(3@'&lt;BR /&gt;&lt;BR /&gt;CHAR(27) + '(0Y' + CHAR(27) + '(s0p8.1h12v0s0boT' + CHAR(27) + '*25531X*' + '(3@'&lt;BR /&gt;&lt;BR /&gt;CHAR(27) + '(0Y' + CHAR(27) + '(s0p8.1h12v0s0boT*12345*'+ '(3@'&lt;BR /&gt;&lt;BR /&gt;CHAR(27) + '(0Y' + CHAR(27) + '(s0p4.69h12.0v0b0T*12345*' +  CHAR(27) + '(3@'&lt;BR /&gt;&lt;BR /&gt;The 32772T is the one from the font listing off the printer.&lt;BR /&gt;&lt;BR /&gt;I have also found this code that almost works.&lt;BR /&gt;Except, it does not print out the numbers 7,8,9 or the uppercase letters H-Z.  But, it does print lowercase letters.&lt;BR /&gt;&lt;BR /&gt;CHAR(27) + '(25531X*' + @v_vchEquipmentId + '*' + CHAR(27) + '(3@' &lt;BR /&gt;&lt;BR /&gt;Could someone please help me figure out why it is not working, or point me in the right direction for some help?&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2011 21:06:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741734#M37290</guid>
      <dc:creator>Angi Brown</dc:creator>
      <dc:date>2011-01-20T21:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using PCL to print barcode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741735#M37291</link>
      <description>Angi,&lt;BR /&gt;&lt;BR /&gt;Welcome to the HP ITRC OpenVMS forum.&lt;BR /&gt;&lt;BR /&gt;Having done this type of thing in the past, I would have to sit down with the manual, and with precise samples of the output.&lt;BR /&gt;&lt;BR /&gt;I also recommend starting with a far simpler problem, namely using a tool such as Kermit to write directly to the printer. Also, since presumably the printer is connected to a serial port, a full listing (SHOW TERMINAL/FULL) of the relevant device would be helpful.&lt;BR /&gt;&lt;BR /&gt;These problems can be subtle, but in the end they are always explicable.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter,</description>
      <pubDate>Thu, 20 Jan 2011 21:33:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741735#M37291</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2011-01-20T21:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using PCL to print barcode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741736#M37292</link>
      <description>Why PCL?  Can you use postscript? &lt;BR /&gt;&lt;BR /&gt;The gnu barcode program will create postscript barcodes and it builds easily on VMS (using gnv -its pretty simple you could probably easily build it without GNV too).&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/barcode" target="_blank"&gt;http://www.gnu.org/software/barcode&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Brad McCusker&lt;BR /&gt;Software Concepts International&lt;BR /&gt;&lt;A href="http://www.sciinc.com" target="_blank"&gt;www.sciinc.com&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Jan 2011 14:13:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741736#M37292</guid>
      <dc:creator>Brad McCusker</dc:creator>
      <dc:date>2011-01-21T14:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using PCL to print barcode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741737#M37293</link>
      <description>You need a programming manual for your printer, or at least know the PCL compatibility level and find that PCL programming guide. The fact that you're at least getting something to print is good.&lt;BR /&gt;&lt;BR /&gt;I've never set up this specific printer, but have dealt with many other brands/models, so this is general PCL information.&lt;BR /&gt;&lt;BR /&gt;You seem to be confusing the FONT, SYMBOL SET and TYPEFACE commands, and there are some typos in the examples.&lt;BR /&gt;&lt;BR /&gt;(assuming the leading Escape and single commands)&lt;BR /&gt;&lt;BR /&gt;Use Fixed Spacing:  (s0P&lt;BR /&gt;&lt;BR /&gt;In all but the very last command, you are sending Symbol Set ID= 0Y as (0Y and this is fairly common, but you'd need to know what's in your printer.&lt;BR /&gt;&lt;BR /&gt;In the first command you list, you're using Proportional spacing (s1P and sending the Font ID in the Typeface command (b#T where # should be the Typeface rather than Font, if that's what you want to do. The Font command is (#X where # is the Font ID.&lt;BR /&gt;&lt;BR /&gt;In the second and third, you send a lower case o in the Typeface command as (boT and it should probably be a zero (b0T and I don't know what &lt;ESC&gt;*25531X is supposed to do. If you are selecting Font 25531 it should be (25531X&lt;BR /&gt;&lt;BR /&gt;The fourth example is very close to what I use for an HP PCL printer. It uses the common Bar Code Typeface and Symbol set so maybe the wrong font is active.&lt;BR /&gt;&lt;BR /&gt;Without having your printer to play with, that's about all I can give you.&lt;/ESC&gt;</description>
      <pubDate>Fri, 21 Jan 2011 20:18:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741737#M37293</guid>
      <dc:creator>Doug Phillips</dc:creator>
      <dc:date>2011-01-21T20:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using PCL to print barcode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741738#M37294</link>
      <description>&lt;P&gt;It can be cheaper to use an existing library and tools, even if you have to port it over to VMS.&lt;BR /&gt;&lt;BR /&gt;Haven't looked at what's in this old Freeware submission in detail in a while, but it looks to do 39 for you:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://decuslib.com/freeware/freewarev60/barcode/" target="_blank"&gt;http://decuslib.com/freeware/freewarev60/barcode/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Other options and languages:&lt;BR /&gt;&lt;BR /&gt;Lua:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;[expired broken link removed on &amp;lt;4/4/2017&amp;gt; by Mod]&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Python:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://freshmeat.net/projects/barcodes-for-python" target="_blank"&gt;http://freshmeat.net/projects/barcodes-for-python&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://pypi.python.org/pypi/elaphe/" target="_blank"&gt;http://pypi.python.org/pypi/elaphe/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://pypi.python.org/pypi?%3Aaction=search&amp;amp;term=pyBarcode&amp;amp;submit=search" target="_blank"&gt;https://pypi.python.org/pypi?%3Aaction=search&amp;amp;term=pyBarcode&amp;amp;submit=search&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;php:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sid6581.net/cs/php-scripts/barcode/" target="_blank"&gt;http://www.sid6581.net/cs/php-scripts/barcode/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://pear.php.net/package/Image_Barcode/" target="_blank"&gt;http://pear.php.net/package/Image_Barcode/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here's a php pdf generator that can do barcode&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.fpdf.org/" target="_blank"&gt;http://www.fpdf.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There's a cute php demo for a UPC barcode here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://php.net/manual/en/ref.image.php" target="_blank"&gt;http://php.net/manual/en/ref.image.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Perl:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://cpansearch.perl.org/src/KWITKNR/GD-Barcode-1.15/Barcode/" target="_blank"&gt;http://cpansearch.perl.org/src/KWITKNR/GD-Barcode-1.15/Barcode/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;All of the above languages are available on VMS.&lt;BR /&gt;&lt;BR /&gt;Or toss the data over to a Windows or Mac or Linux box, and print the document and the barcode from there. &lt;BR /&gt;&lt;BR /&gt;I'd expect commercial solutions for generating barcodes exist for OpenVMS, as well. Check the HP AllianceONE (formerly DSPP) product listings.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hp.com/go/dspp" target="_blank"&gt;www.hp.com/go/dspp&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 07:41:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741738#M37294</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2017-04-04T07:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using PCL to print barcode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741739#M37295</link>
      <description>The barcode tool Hoff pointed you to on Freeware V6 is the same one from GNU that I pointed you to, except I think the freeware version has a DCL compatible build script.&lt;BR /&gt;&lt;BR /&gt;That one works pretty well.  If you can print Postscript, I encourage you to take a look at using it.  Seems like a very easy way forward.</description>
      <pubDate>Fri, 21 Jan 2011 21:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741739#M37295</guid>
      <dc:creator>Brad McCusker</dc:creator>
      <dc:date>2011-01-21T21:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using PCL to print barcode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741740#M37296</link>
      <description>&lt;P&gt;Angi, you don't really say if you're trying to print from a system running OpenVMS. And you haven't said what type printer.&lt;BR /&gt;&lt;BR /&gt;With Google I found the following URL:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.computing.net/answers/openvms/pcl-specific-print-tray-commands-and-vms/583.html" target="_blank"&gt;http://www.computing.net/answers/openvms/pcl-specific-print-tray-commands-and-vms/583.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and the person responding seems to be doing what you're after, at least printing using PCL to a printer on OpenVMS.&lt;BR /&gt;&lt;BR /&gt;The "traditional" way to handle printers is to use a queue and symbiont to send the data to the printer which might be either connected to a serial device (of several different types), a parallel interface or USB (if your unknown system HAS USB for that matter). The code you've posted looks like it's "plain ascii" PCL commands and that might work best if you copied it using the COPY command to the printer or possibly programmaticly by opening the serial port and writing directly to the printer. There are many alternate solutions so it makes sense (to me) to try and find someone else who has done something similar and pick their brain. There are also software vendors who have solved this and other printing "problems" on OpenVMS for non-native printers. One of these, I think, is Northlake.&lt;BR /&gt;&lt;BR /&gt;There's also this ITRC thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/General/OPENVMS-PCL-PRINTING-TO-HPLASERJET-4200/m-p/3311280#M2827" target="_blank"&gt;http://h30499.www3.hp.com/t5/General/OPENVMS-PCL-PRINTING-TO-HPLASERJET-4200/m-p/3311280#M2827&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 16:15:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741740#M37296</guid>
      <dc:creator>Bob Blunt</dc:creator>
      <dc:date>2011-11-10T16:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using PCL to print barcode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741741#M37297</link>
      <description>&lt;P&gt;There are also other threads in ITRC that seem pertinent, one of them:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/System-Management/HP-LJ4200TN-PCL-for-barcode-on-off/m-p/3818587#M12729" target="_blank"&gt;http://h30499.www3.hp.com/t5/System-Management/HP-LJ4200TN-PCL-for-barcode-on-off/m-p/3818587#M12729&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 16:15:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/4741741#M37297</guid>
      <dc:creator>Bob Blunt</dc:creator>
      <dc:date>2011-11-10T16:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using PCL to print barcode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/6300625#M37298</link>
      <description>&lt;P&gt;thank you.&amp;nbsp; i am sort of looking for such device to &lt;A target="_blank" href="http://www.rasteredge.com/how-to/vb-net-imaging/barcode-generating/"&gt;print differnet tyoes of barcode&lt;/A&gt; I will give it a try.&amp;nbsp; can i have a try version.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2013 03:24:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-using-pcl-to-print-barcode/m-p/6300625#M37298</guid>
      <dc:creator>gdjump</dc:creator>
      <dc:date>2013-12-11T03:24:48Z</dc:date>
    </item>
  </channel>
</rss>

