angular - 如何以角度将任何元素的 innerHtml 导出到 Microsoft Word?使用打字稿
问题描述
我有一个显示一个字母的模式,我想将该字母导出到 Microsoft Word。我创建了一个模态类,我在其中调用列表中的值,我希望用户提供一个选项,以便模态内的整个内容可以导出到 Microsft Word。因为我在模态中显示一个字母
请务必找到我的模态
<ng-template #template> <div class="modal-header"> <h4 class="modal-title pull-left">Letter</h4> <button type="button" class="close pull-right" aria-label="Close" (click)="bsModalRef.hide()"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body" *ngFor="let item of items"> {{item}} </div> </ng-template
解决方案
您似乎想将 Angular 应用程序中的内容导出为 MS Word 文件
然后参考这个问题:Using Angular 2 to generate a Docx Files to generate .docx using https://docx.js.org/#/
推荐阅读
- android - 使用 Alarmmanger 的心跳不能使服务保持活力
- mysql - Spring boot multitenancy ,其中一个租户连接到多个模式
- javascript - Woocommerce 如何获取产品数据以在自定义模式中使用它们
- apache-camel - 骆驼在处理文件之前验证校验和
- python-3.x - 在 Python3 的另一个类中使用枚举实例
- vba - 公共类型不能在类模块中声明
- python - 迭代 python 对象是 2.7。显示未找到错误
- javascript - 被服务器重定向后反应处理表单提交(带有数据)?
- python - python logger的后代-好处
- java - Spring Boot(用户''@'localhost'拒绝访问数据库'myappdb')