简体   繁体   English

将Epson LK 300 II与python应用程序连接的步骤

[英]Steps to connect Epson LK 300 II with python application

I have created one python based web-application. 我创建了一个基于python的Web应用程序。 Basically the application is printing the customer bills as per their purchase. 基本上,该应用程序根据客户的购买来打印客户账单。 So I have created bill format but not sure how to print that by clicking on button print which i have added in page. 因此,我创建了帐单格式,但不确定如何通过单击页面中添加的按钮打印来打印该格式。 My requirement here is when I click on that print button of my application then the bill should be printed from printer. 我的要求是,当我单击应用程序的打印按钮时,应从打印机打印账单。 If anyone having idea about the steps how should i process to solve this please feel free to add comments. 如果有人对我应该如何处理的步骤有想法,请随时添加评论。

This should not be a Django matter. 这不应该是Django的事情。 It doesn't matter if the web app is on your local machine, a web app is a web app. Web应用程序是否在您的本地计算机上都无所谓,Web应用程序就是Web应用程序。 You have to make clear in your design if you wish to use a printer as a server or as a client. 如果要使用打印机作为服务器或客户端,则必须在设计中明确说明。

Since I assume that it is more reasonable to print as the end user, you can simply use a bit of javascript calling window.print() on click. 由于我认为以最终用户身份进行打印更为合理,因此您可以在单击时简单地使用一些JavaScript调用window.print()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM