{"id":72,"date":"2020-01-28T21:33:57","date_gmt":"2020-01-28T21:33:57","guid":{"rendered":"https:\/\/iani.co\/blog\/?p=72"},"modified":"2021-07-15T12:40:00","modified_gmt":"2021-07-15T12:40:00","slug":"badge-printing-with-power-apps-checking-the-printing-requirements-of-the-chosen-printer","status":"publish","type":"post","link":"https:\/\/iani.co\/blog\/badge-printing-with-power-apps-checking-the-printing-requirements-of-the-chosen-printer\/","title":{"rendered":"Badge printing with Power Apps &#8211; 1. Checking the printing requirements of the chosen printer"},"content":{"rendered":"\n<p><em>This is part of the series <strong><a href=\"https:\/\/iani.co\/blog\/badge-printing-and-more-with-power-apps\/\">Badge printing and more with Power Apps<\/a><\/strong><\/em><\/p>\n\n\n\n<h2>Introduction<\/h2>\n\n\n\n<p>I have been developing a visitor registration app for the company I work. Since we already have Office365 licenses and we are heavily using SharePoint, Teams and other Microsoft products, I thought, why not using Power Apps to build a <strong>kiosk <\/strong>mobile app which will run on a tablet in the office. Kiosk as in always on, just sitting in the office lobby. Secured with a lock of course, what did you think? \ud83d\ude42<br>The big advantage of Power Apps is that the same app will be available for all the coworkers on web or on their mobile phones.  Build once, run it everywhere&#8230;<\/p>\n\n\n\n<h2>Badge printing<\/h2>\n\n\n\n<p>Everything went well, the app was running and visitors were successfully checked in and out. But the killer feature was missing &#8211; <strong>badge printing<\/strong>. All the other important visitor management solutions offered this feature.<\/p>\n\n\n\n<h2>The chosen printer<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/iani.co\/blog\/wp-content\/uploads\/2020\/01\/QL820NWB-powerapps.png\" alt=\"\" class=\"wp-image-77\" width=\"478\" height=\"478\" srcset=\"https:\/\/iani.co\/blog\/wp-content\/uploads\/2020\/01\/QL820NWB-powerapps.png 960w, https:\/\/iani.co\/blog\/wp-content\/uploads\/2020\/01\/QL820NWB-powerapps-300x300.png 300w, https:\/\/iani.co\/blog\/wp-content\/uploads\/2020\/01\/QL820NWB-powerapps-150x150.png 150w, https:\/\/iani.co\/blog\/wp-content\/uploads\/2020\/01\/QL820NWB-powerapps-768x768.png 768w\" sizes=\"(max-width: 478px) 100vw, 478px\" \/><\/figure>\n\n\n\n<p>After some research, I went with the <strong>Brother QL-820NWB<\/strong><\/p>\n\n\n\n<ul><li>N stands for Network connection<\/li><li>W stands for Wireless connection<\/li><li>B for Bluetooth connection<\/li><\/ul>\n\n\n\n<p>The specifications were great, having all the connectivity options already available. Unfortunately with <strong>Power Apps <\/strong>you cannot use the native features of the device like Bluetooth connectivity to send a print job to the printer.<\/p>\n\n\n\n<p><strong>Brother <\/strong>provides quite an extensive documentation for developers and a SDK, which again, wasn&#8217;t useful in our case.<\/p>\n\n\n\n<p>So I had to find a workaround to get the Power Apps app to communicate with the printer.<\/p>\n\n\n\n<p>The solution was to use the ESC\/P commands to send the template and the contents to the printer.<br>Perfect, the tablet the app was running on was connected to the office Wifi. The printer was connected to the same network via cable. The devices were sitting right next to each other. They should be getting along fine, right?<br>Wrong! \ud83d\ude42 Because Power Apps runs in the cloud context (Office 365) and it doesn&#8217;t care about your local network.<\/p>\n\n\n\n<p>So, I had to find the way to <a href=\"https:\/\/iani.co\/blog\/badge-printing-with-power-apps-2-finding-the-way-to-send-the-print-job-to-the-printer\/\" title=\"Badge printing with Power Apps \u2013 2.Sending the print job to the printer\">send the print job to the printer&#8230;<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is part of the series Badge printing and more with Power Apps Introduction I have been developing a visitor registration app for the company I work. Since we already have Office365 licenses and we are heavily using SharePoint, Teams and other Microsoft products, I thought, why not using Power Apps to build a kiosk [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19,16,18],"tags":[],"_links":{"self":[{"href":"https:\/\/iani.co\/blog\/wp-json\/wp\/v2\/posts\/72"}],"collection":[{"href":"https:\/\/iani.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iani.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iani.co\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iani.co\/blog\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":18,"href":"https:\/\/iani.co\/blog\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":142,"href":"https:\/\/iani.co\/blog\/wp-json\/wp\/v2\/posts\/72\/revisions\/142"}],"wp:attachment":[{"href":"https:\/\/iani.co\/blog\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iani.co\/blog\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iani.co\/blog\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}