Develop POS website in asp.net MVC but unable to take cut printout throught EPSON Tv88IV - asp.net

What should i do for thermal printing and receipt should be cut after each one receipt with proper format. right now i am using normal java script for printing
so print preview is also come what should i do for stop print preview.
Thanks in advance !!

Related

What is an acceptable way to print from app maker?

I'm trying to figure out what the best way to print from App Maker. I have a guess management app and I need a way to print out guest passes from app maker. I have some ideas, but I'm not sure what would work or be the acceptable best practice. These will print out on a 4x6 thermal printer. Any working examples would be greatly appreciated. I've only managed to get option two below to work without css formatting.
1) Open the guest info in a page fragment and print it. This would need to print the page fragment as displayed, unsure if this is possible in app maker.
2) Create an html page by passing the guests information, open the page in a new tab and use windows print.
3) Use a mailmerge of sort on a document on google drive and print with cloud print. I'm worried that the lag time might make this slow. I'm also unsure if it's doable.
Thank You
It sounds like you want to manually print them.
You could have a 'Visitor Card' template saved as either a Google Document or Google Sheet. When the visitor signs in, duplicate that document, write your visitors information to the appropriate cells/positions, then save as a PDF in a Google Drive location.
All of the above can automated, so you'll simply have to have a tab open at the Drive location and then print the file once saved. The saving process shouldn't take any longer than 5-10 seconds, which I think is a reasonable timeframe.
Another option, which is more technical, is you directly send a request to your printer to print. Although, this would depend on your printer and technical capabilities.

Attempting to design a flexible reporting system. Getting stuck

I’m having some trouble coming up with a future-proof-ish design for reports for a company. Essentially the requirements are:
Be able to pull whatever data from the database
Generate formatted report from that data by populating a template (HTML, docx)
Export to Word and/or PDF
So initially I made an API endpoint per report (this is a web app), and had PDFs generated and formatted correctly.
But now I need to get the data into .docx/Word format, and I’m trying to figure out how I can design something as D.R.Y. as possible so that I don’t have to put in a TON of work every time the company decides they need another report (they’ve done this two, three times which is how I became aware that I had coded myself into a corner).
Every report I’ve done thus far has been done via a “brute-force” method: code the queries needed for the report, format the data, and then render to PDF (using HTML to PDF via phantomjs).
The complexity occurred when the company came back and said “Hey, we need all of those reports in Word format, also we have 3 other new reports that we need and a report that is a slight variation on the old one but +/- 2 fields”.
I am just having trouble coming up with a solid design/abstraction here, one that doesn’t send me down a week long hacking spree every time a requirement changes.

Using a QR code instead of a barcode to read a number into a web form

I want to use generate a QR code for a docket number in a rails web app and print it on the docket. Later, a cashier will scan the QR code from the printed docket into a web form and submit it where my app will retrieve the docket record from a database using the submitted number. Is this feasible and how can I do this? The cashier may use any device from a tablet, phone or computer.
I know how to generate the required code but unsure of the feasibility of reading the code into an input form on a web page.
You need to capture image somehow.
http://miniqr.com/reader.php - This example use Flash & Webcam to make image and read qr code.
http://f.etf.unsa.ba/redmine/projects/nwt-html5-barcode-scanner - html5 solution (needs WebRTC)

Determine if page was loaded from history or from QR Code scan

Here's the situation. I am trying to implement a system in a restaurant where each table has its unique QR Code. The QR Code is fixed and hard printed on the table. My application is basically a web page and the QR Code is simply a web page address with an encrypted parameter which identifies the table.
This system is already protected (to a certain degree) from pranksters by only allowing orders to come from the IP address of the Wifi connection. So you need to be at least connected to the restaurant's wifi to use this page. Doesn't protect from people outside the building, but that is another issue.
The problem occurs if a user comes today and scans the code for table 3 and places an order. If the user comes later and sits at table 5, I don't know how to stop them from loading the previously scanned link (for table 3) and place an order for table 3.
Having constantly changing time stamped QR Codes would address the problem, but that is impossible since the QR codes are fixed.
Is there a way for the page to "know" that it has been loaded from a QR Code Scan, or whether it was loaded from the browsing history? We are talking about pages loaded on a smartphone, so I guess that complicates matters.
Any help or pointers would be greatly appreciated! :)
In short, no. There's usually no "refer" header which will tell you that a page has been loaded from a bookmark or retrieved from a scanner's history rather than scanned directly.
Having an ever changing QR code is not impossible (using eInk or a small display) but that doesn't solve the problem.
Here's how I would fix it.
User scans a code - example.com/table3 - the first thing they see is a map with table 3 highlighted on it.
Text says "If you're not at table 3, please scan the code on your table. If you are - click here to order." Or something like that.
Explain to the user that if they're not sitting at the correct table - someone else will get their food!

ASP.NET Consolidated Report

We have an ASP.NET 2 application and at the moment for the reporting, we are utilising DataSet/DataTable taking some storedprocedure/query and display on the screen (grids). For the graphics, we are using Dundas Chart component and again we are utilising DataSet/DataTable to display it. These thing has been running well ... no issue.
Now, we are having a challenge that every single report that we produce above (grid or graph), the user wants to consolidate into 1 single click solution which means if they click the "Consolidated Report" it will produce the page as well (grid/graph) into 1 page. But the issue is that the user wants use the display (grid/graph) and download into 1 file. It could Ms Words/Ms Excell.
How we are going to achieve this?
I am thinking to do as follow:
1. Convert everything to use the Reporting Services (client) .. or
2. Is it possible to do like convert the page/grapf into Word/Excel into a single page? Is there any other solution?
The issue is that the we have simple stored procedures to get the data source out and then we are using that data and do the massive data manipulation in DataSet/DataTable (loop through the records, create a new dataset and manipulate etc etc) and then to construct the final report and display on the screen.
I am appreciated your comment.
Thank you
In my opinion the best solution will be integrating the HTML into a PDF.
You can convert the HTML generated into PDF easily with ABCPdf from WebSuperGoo (I suspect that other solutions can work, but I have only used this product)
See this live demo, and select "Add URL" and point to your URL or check out this example

Resources