使用离子2/3创建打印菜单

问题描述 投票:1回答:1

嗨,我花了很多时间来使用Ionic 3制作打印菜单。我无法获得打印菜单。相反,我生成一个pdf并调用文件打开器来打开该文档并使用android打印菜单。我想使用离子生成该android打印菜单。使用另一种方式,我可以打印文档而无需弹出菜单。它不包括打印菜单。this is the menu i want to create using ionic。下面的代码可直接打印...。

this.printer.isAvailable().then(function(){
          this.printer.print(this.pdfObj).then(function(){
          alert("printing done successfully !");
          },
          function(){
          alert("Error while printing !");
          });
      }, 
      function(){
      alert('Error : printing is unavailable on your device ');
      });
javascript printing ionic2 ionic3 ngcordova
1个回答
0
投票

我找不到离子溶液。离子中唯一的方法是生成pdf并使用os支持的打印菜单打开它。

© www.soinside.com 2019 - 2024. All rights reserved.