我正在尝试用angular 7直接打印收据。我不需要打印预览。我想选择打印机并继续打印。有没有什么插件或示例可以做到这一点?
发布于 2020-06-24 17:43:23
为此,您可以使用ngx-print。
插件- https://www.npmjs.com/package/ngx-print
<div id="print-section">
<!--Your html stuff that you want to print-->
</div>
<button printSectionId="print-section" ngxPrint>print</button> https://stackoverflow.com/questions/62550976
复制相似问题