{"id":69243,"date":"2021-08-15T04:10:06","date_gmt":"2021-08-15T08:10:06","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/introduction-to-printer-programming-with-examples-must-read-4\/"},"modified":"2021-08-15T04:10:06","modified_gmt":"2021-08-15T08:10:06","slug":"introduction-to-printer-programming-with-examples-must-read-4","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=69243","title":{"rendered":"Introduction to Printer Programming With Examples: Must Read #4"},"content":{"rendered":"<p>You can use the functions\/procedures\/classes that a programming language provide to program a printer. Another alternative is, sending raw printing command to the printer itself. Each printer has their own instruction sets. Usually what happens, when you use built in functions they convert your procedure\/function call to printer language and send it to the printer. They do it, using the printer driver<\/p>\n<p>You can do that by yourself by sending raw printer commands to the printer itself. Windows has an API called &#8216;Escape&#8217; that can send raw texts\/printer commands to the printers without using the driver. Now you need to know the language that the printer uses and use &#8216;Escape&#8217; function to send raw print commands to the printer.<\/p>\n<p>I personally have working experience with intermec label printers. Intermec label printers support two different kinds of printer languages. IPL (Intermec printer Language) and DP (Direct Protocol). You need to check what your printer uses. The printers that use DP come with a tool named fingerprint installed on the printer itself. This fingerprint tool understand DP language and executes the printer in that way. Good thing is, fingerprint supports dynamic printing language that means you can use if then else, for, while etc in your printing language.<\/p>\n<p>An example DP program can be as follows:<\/p>\n<p>INPUT ON <br \/>PRPOS 10, 1000<br \/>PRTXT &#8220;hELLO hOW aRE yOU&#8221;<br \/>PF<br \/>LAYOUT RUN<br \/>INPUT OFF<\/p>\n<p>YOU HAVE TO SEND THESE RAW PRINT COMMANDS USING THE ESCAPE FUNCTION.<\/p>\n<p>From: http:\/\/sitestree.com\/?p=4719<br \/> Categories:4<br \/>Tags:<br \/> Post Data:2007-03-18 00:05:38<\/p>\n<pre><code>    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\"&gt;https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    (Big Data, Cloud, Security, Machine Learning): Courses: &lt;a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"&gt; http:\/\/Training.SitesTree.com&lt;\/a&gt; \n    In Bengali: &lt;a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\"&gt;http:\/\/Bangla.SaLearningSchool.com&lt;\/a&gt;\n    &lt;a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\"&gt;http:\/\/SitesTree.com&lt;\/a&gt;\n    8112223 Canada Inc.\/JustEtc: &lt;a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\"&gt;http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) &lt;\/a&gt;\n    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com'&gt; https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    Medium: &lt;a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"&gt; https:\/\/medium.com\/@SayedAhmedCanada &lt;\/a&gt;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You can use the functions\/procedures\/classes that a programming language provide to program a printer. Another alternative is, sending raw printing command to the printer itself. Each printer has their own instruction sets. Usually what happens, when you use built in functions they convert your procedure\/function call to printer language and send it to the printer. &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=69243\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-69243","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":22972,"url":"http:\/\/bangla.sitestree.com\/?p=22972","url_meta":{"origin":69243,"position":0},"title":"CISCO ASA 5505 Basic Configuration &#8211; Enabling the Privileged Mode #Root #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 22, 2021","format":false,"excerpt":"CISCO ASA 5505 Basic Configurations - Enabling the Privileged Mode In the Privileged Mode, you can configure the Router\/Firewall for example for site to site VPN This link below helped me the best...before providing the link, some details Run the command: confreg Press y for the options: ---Do you wish\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26854,"url":"http:\/\/bangla.sitestree.com\/?p=26854","url_meta":{"origin":69243,"position":1},"title":"PreparedStatements.java  An example to test the timing differences resulting from repeated raw queries vs. repeated calls #Programming Code Examples #Java\/J2EE\/J2ME #JDBC","author":"Author-Check- Article-or-Video","date":"May 3, 2021","format":false,"excerpt":"package cwp; import java.sql.*; \/** An example to test the timing differences resulting * from repeated raw queries vs. repeated calls to * prepared statements. These results will vary dramatically * among database servers and drivers. With my setup * and drivers, Oracle prepared statements took only half * the\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10130,"url":"http:\/\/bangla.sitestree.com\/?p=10130","url_meta":{"origin":69243,"position":2},"title":"PreparedStatements.java An example to test the timing differences resulting from repeated raw queries vs. repeated calls","author":"","date":"August 7, 2015","format":false,"excerpt":"package cwp; import java.sql.*; \/** An example to test the timing differences resulting \u00a0*\u00a0 from repeated raw queries vs. repeated calls to \u00a0*\u00a0 prepared statements. These results will vary dramatically \u00a0*\u00a0 among database servers and drivers. With my setup \u00a0*\u00a0 and drivers, Oracle prepared statements took only half \u00a0*\u00a0 the\u2026","rel":"","context":"In &quot;Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8&quot;","block_context":{"text":"Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8","link":"http:\/\/bangla.sitestree.com\/?cat=1417"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78641,"url":"http:\/\/bangla.sitestree.com\/?p=78641","url_meta":{"origin":69243,"position":3},"title":"SMTP: Purpose, Installation, Steps, Data Format","author":"Author-Check- Article-or-Video","date":"December 2, 2025","format":false,"excerpt":"Below is a 30\u201340 minute SMTP lesson plan suitable for college-level networking courses . It includes: purpose, tools, installations, commands, protocol operations, Telnet interaction, data formats, and references to typical Wireshark visuals (without reproducing copyrighted images). \ud83d\udcd8 SMTP Lesson Plan (30\u201340 Minutes) Topic: Simple Mail Transfer Protocol (SMTP)Audience: Networking \/\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14038,"url":"http:\/\/bangla.sitestree.com\/?p=14038","url_meta":{"origin":69243,"position":4},"title":"On File Systems and Linux Commands (Redhat\/CentOs\/Fedora)","author":"Sayed","date":"December 26, 2017","format":false,"excerpt":"On File Systems and Linux Commands (Redhat\/CentOs\/Fedora) echo \"Dec 26th, 2017, Sayed Ahmed, Justetc Technologies\" On file Systems - Target Audience: Technical People. Software Developers and System\/Network Administrators or DevOps\u00a0 (or wanna be) \/ and \/boot are the default Linux file systems you can also configure \/home, \/opt, \/var, \/tmp,\u2026","rel":"","context":"In &quot;\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix&quot;","block_context":{"text":"\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix","link":"http:\/\/bangla.sitestree.com\/?cat=1231"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65695,"url":"http:\/\/bangla.sitestree.com\/?p=65695","url_meta":{"origin":69243,"position":5},"title":"Use of For Loops and Functions in Shell Programming #Linux\/Unix: Shell Programming &#8211; 001","author":"Author-Check- Article-or-Video","date":"July 11, 2021","format":false,"excerpt":"bash-3.2$ cat multiplication.sh #!\/bin\/bash # Example use of function\/method declaration in Shell Programming # Example use of for loop #a function that will multiply 1 to 10 with 5 multiplication() { x=5 for i in {1..10} do echo $i echo \"the multiplication result is:\" $(($i*$x)) done } echo \"Print 1\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/69243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=69243"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/69243\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=69243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=69243"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=69243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}