使用带有离子型的Str Print100打印机是否可以打印丰富的内容(img和文本)?

时间:2019-06-13 12:07:57

标签: printing ionic3

我使用离子3。我能够将我的应用程序连接到Star Print 100打印机。我想打印文本和图像。我只能打印文本或仅打印图像。但是我无法同时打印文本和图像。

rasterObj = { text : "        Star Clothing Boutique\n" + "             123 Star Road\n" + "           City, State 12345\n" + "Charge\n" + "156.95\n" + "Visa XXXX-XXXX-XXXX-0123\n" + "Refunds and Exchanges\n" + "Within 30 days with receipt\n" + "And tags attached\n", fontSize: 25,       //Defaults to 25 paperWidth: 576,    // options: 384 = 2", 576 = 3", 832 = 4" cutReceipt:true, // Defaults to true uri: 'https://www.domainname.com/image.jpg', openCashDrawer:true // Defaults to true }; printRasterReceipt('USB:TSP100', 'StarGraphic', rasterObj).then(result => {},error=>{alert('Error!');});

结果是空白打印。我不知道错误在哪里。我无处可找到同时打印文本和图像的过程。

0 个答案:

没有答案