| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 59322 | 2005-06-28 09:43:00 | Panasonic Printer | phppick (8431) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 367689 | 2005-06-28 09:43:00 | Hi, I am using Panasonic Dot Matrix (KX-P1121). I am using this to Print tickets for Bus. My Ticket Dimensions are: Height: 3.5 Inch Width: 9.55 Inch I am using PreFormatted Paper to print tickets, with company logo & lables etc. The Problem is: When i book 1 Ticket and gave print, its printing and its sending out paper, which is equivalent to size of A4 . So, i created new Custome Dimensions which exactly maches my Ticket Dimensions.. When i gave print, its taking only 3.5inch(height) paper in side and printing the text. After printing last line its stopping at that point. I need to role the Paper a bit, to tear the ticket. How do exactly ask the printer to stop exactly at dotted line, (Tickets are attached with Dotted line). Lets say if two tickets are booked it should stop exactly after printing second ticket (at dotted line). Any guys to help me. Thanks in advance. Jen |
phppick (8431) | ||
| 367690 | 2005-06-28 10:51:00 | You may well need to know the Panasonic 'escape codes' for your printer, these are the instructions that tell the printer what to do, like these here for Epson: webpages.charter.net I really do forget now almost all about using escape codes, but most dot matrix printers are more or less compatible with epson. |
Terry Porritt (14) | ||
| 367691 | 2005-06-29 02:32:00 | What you need is the "Page Length" setting in the printer. That might be a switch setting (if you are lucky ;)). :( oops, hit the wrong button in this one. ... | Graham L (2) | ||
| 367692 | 2005-06-29 02:35:00 | What you need is the "Page Length" (or "Form Length") setting in the printer. That might be a switch setting (if you are lucky ;) ). Otherwise it might be a non-volatile setting ... check the manuals. With that set correctly, it should work properly. Setting the pagelength only in software will always give problems. Google might help ... try KX-P1121 "form length" as the search string. |
Graham L (2) | ||
| 367693 | 2005-06-29 07:19:00 | Hi, I set the Form Lenght in Server Properties of the Printer under Control Panel. Which mataches exactly my Ticket Dimensions Height: 3.5 Inch Width: 9.55 Inch. But, its stopping at the last line once printed,I need to role the Paper a bit to seperate the printed ticket. Any Suggesstions. |
phppick (8431) | ||
| 367694 | 2005-06-30 00:06:00 | What is needed is the software to add one or more Line Feed characters and a Carriage Return. Easy to say, but I don't know how this could be done. Graham is sure to know. :) It may be something as simple as finishing the ticket file when it has been written with a few extra [Enter] key strokes. |
Terry Porritt (14) | ||
| 367695 | 2005-06-30 01:45:00 | I'd be inclined to go for a FORMFEED (Ctrl/L, hex 0C) character. That will move the paper to the next form division. The linefeed works as long as you calculate exactly, and don't make any changes. (The first person to follow you in maintaining this application will add a line. ;)) A formfeed is designed exactly for this function. It moves from the current position to the next form's start. Early lineprinters had a sprocket driven loop of paper tape with holes punched in different columns at various intervals. According to the " channel " selected when a line was printed the paper would be moved by the distance bewteen the holes in that channel. The first character in a line to be printed by a FORTRAN programme was the carriage control character and was not printed. " + " would cause no movement, for overprinting; " " would space one line (normal), " 1 " would double space, " 0 " would cause a form feed. (That last one must have wasted many pages of paper with one line printed per page. Most FORTRAN programmers made that mistake. At least once.) |
Graham L (2) | ||
| 367696 | 2005-06-30 04:08:00 | D-M printers are testing memories, here! What you are looking for is an instruction to tell the printer to issue a form feed at the end of the job. I remember vaguely that sometimes this was a dip switch setting but I have no idea whether this is so for this printer. Do you have the manual? If not, you could try ringing the NZ distributors, MEC, in Auckland. They will be able to tell you how to get that EOJ FF in. | linw (53) | ||
| 367697 | 2005-06-30 07:50:00 | Hi, How to use the Form Feed. I tried to include "\f" in my code. but no effect. Actually, i am generating PDF file with PHP Code. In that i specified "\f" at the end of the line. Second option i made is in html before generationg PDF file i gave like this <p STYLE="page-break-after: always"> <TABLE ...> .... </TABLE> </p> Any Suggesstions. I tried to grab information in the internet, but couln't find enough. Thanks Jen |
phppick (8431) | ||
| 367698 | 2005-06-30 09:01:00 | I seem to recall in dos that a carriage return had to be added after a form feed, so perhaps try adding "\r" at the end of your php file. Have to admit I'm groping in the dark :) |
Terry Porritt (14) | ||
| 1 2 3 | |||||