-1
A
回答
-1
通过使用javascript构建HTML,您可以在SAPUI5应用程序中创建打印。它将在桌面和手机上。
var temp = this.getView().getModel();
console.log(temp);
var nameofWork =
"A variable object is an abstract concept." +
"In different context types, physically, it’s presented" +
" using different object. For example, in the global context" +
" the variable object is the global object itself (that’s why we have an ability to refer global variables via property names of the global object).";
var mainView = "<html><body><div><h2>Name of work:</h2><div><p>" + nameofWork + "</p></div></div>";
mainView += "</body></html>";
var ctrlString = "width=600px,height=600px";
sap.ui.core.BusyIndicator.hide();
var wind = window.open("", "PrintWindow", ctrlString);
wind.document.write(mainView);
wind.print();
wind.close();
相关问题
- 1. SAP UI5 XML视图(Fiori)
- 2. 使用OData API的SAP Fiori
- 3. SAP Fiori从表中获得价值
- 4. 浏览sap fiori中的碎片
- 5. SAP Fiori:碎片中的后退按钮
- 6. UI5中的SAP Fiori OData模型连接
- 7. 使用Sap Fiori Launchpad的主页
- 8. SAP FIORI媒体列表,从SMP
- 9. SAP Fiori和Movilizer有什么区别?
- 10. SAP Fiori FPM/WebDynpro应用程序激活
- 11. 如何解决SAPUI5 fiori客户端中的打印问题?
- 12. 使用Java打印SAP Crystal Reports
- 13. SAP Fiori应用程序开发中的角?
- 14. 如何运行在SAP WEBIDE中使用可重用库的FIORI应用程序?
- 15. SAP Fiori Launchpad - 系统新闻样式弹出
- 16. SAP Fiori - 创建新瓦片时缓存问题
- 17. 使用ODATA编辑SAP Fiori模板的功能
- 18. SAP Fiori My Leave Request如何停止缓存
- 19. 如何创建SAP Fiori自定义启动板?
- 20. 从客户端发送数据SAP Fiori launchpad webapp/SAPUI5 webapp javascript
- 21. 在WPF中打印/打印预览
- 22. 在Java中打印双面打印
- 23. 在python中打印以前的打印?
- 24. 在ZEBRA标签打印机中打印
- 25. 如何在javascript中打印打印区域进行打印
- 26. 打印到PDF设置 - 使用RestFul Api - SAP业务对象/ .Net
- 27. 打印在cmd中
- 28. 打印在Perl中
- 29. 在Haskell中打印
- 30. 在angularjs中打印
感谢您的回复。 有关打开方法,第二个参数“PrintWindow”是我必须创建的对话框? –
不需要它会自动创建,只需要根据您的要求构建html页面。 –