Forum Home
Press F1
 
Thread ID: 59322 2005-06-28 09:43:00 Panasonic Printer phppick (8431) Press F1
Post ID Timestamp Content User
367699 2005-06-30 10:20:00 HI,

Thanks for Reposne.. I am getting lot of info through this, which i am not aware till.

I tried with "\r" at the End of File. like this ..



echo "<TABLE ...> .... </TABLE>\r";


but still no use.
i have already gave my page dimensions, please look at it, if needed.


Thanks
Jen
phppick (8431)
367700 2005-07-01 03:30:00 Hi Friends,

Any Suggesstions on this issue?

Thanks
Jen
phppick (8431)
367701 2005-07-01 04:04:00 Have you tried a form feed and a carriage return at the end of the file?

I can't help with syntax, as I'm pretty useless with these things :)
Terry Porritt (14)
367702 2005-07-01 05:23:00 The formfeed should move to the top of the next form . carriage return moves the printing point to the left margin . They are independent functions . The CR might be necessary so the next ticket won't lose part of its first line off the right hand margin, but that's irrelevant to the vertical form alignment .

Many "laser" printers required a formfeed to start processing a completed page . That's what the "showpage" command in PostScript sends . Sometimes it was necessary to tell a printer queue on a mainframe to sent an extra FF at the end of a job . Otherwise you lost the last page .

I am afraid that the problem is that the printing is being done through too many layers . . . HTML, PHP, PDF . . . A PDF file will then have to go through some more software to print it . :( :help:

Experiment with a few more ways of including a FF . . . the C language "\" construct might not work in these other scripting languages . But I'm a bit dubious --- a PDF processing stage is probably going to strip off any FF it gets as input . It's meant to do the pretty formatting . ;)
Graham L (2)
367703 2005-07-01 06:17:00 HI,
Tried to append at the end of the file with
\f\r (FormFeed & Carriage Return)

When i click View Source its showing like this.

<TABLE BORDER="0" CELLPADDING="0" BORDERCOLOR="111111" WIDTH="100%">
... .
...
</TABLE>\r

And when i reverse the order at the end of line with \r\f, its showing like this in view source


<TABLE BORDER="0" CELLPADDING="0" BORDERCOLOR="111111" WIDTH="100%">
... .
...
</TABLE>\f

and also unable to get the paper out as per requirments..

Any Sugg,

Thanks
Jen
phppick (8431)
367704 2005-07-02 02:45:00 I'm not sure that HTML is understanding the "\f" as a formfeed character. It might be taking it as the two characters "\" and "f".

You could try the &012; method of including the FF in HTML, but again, I'm pretty sure that HTML formatting strips out any "whitespace" and does the formatting itself. :( (Whistespace is " ", TAB, FF, LF, CR, ...)

It seems pretty clear that your printer is never getting a formfeed. I think you're going to have to do it after all the scripting languages have had a go at it. If you were using Linux it would be trivial to drop a filter into the print service to add a FF. It might be possible to do a similar thing in Windows: write a programme which you send the printer file to (instead of direct to the printer) which just copies the file straight through, then appends a FF. I wrote one once in Pascal (inder DOS) to handle an odd printer, but that wrote to the printer hardware directly. That's not allowed in later OSs.

As a first step you could try making a file containing only a formfeed. (Notepad would probably do it if you can copy and paste the FF character from the ASCII character set table). Then send that to the printer immediately after your ticket file.
Graham L (2)
367705 2005-07-05 10:23:00 Hi,

Thanks for Help

Graham L:
I am able to print pages. But the thing left is getting the Ticket Out once printed. I think i am unable to use the "FormFeed" etc things.

Can instruct me, in previous msg u mentioned "making a file containing only formfeed". can u mention in steps, if possible, how to use etc..

Thanks in advance
Jen
phppick (8431)
367706 2005-07-06 01:40:00 One other printer thing you could look for and try: I noticed on the bottom of a (HP400) test page among the other settings was one called "Skip Perforation". Even though that's a sheet page printer that does exactly what you want ... when the printed area gets to the trigger point it ejects that page , ready for the next one. See if th Panasonic has a corresponding setting.

To make a Formfeed file depends on your editor programme. I don't know how things work in Windows XP. ;)

A DOS command sequence can do it : copy con: ff.dat, then enter Ctrl/L, then Ctrl/C. This probably won't work in XP. :(

Notepad: (Wordpad?:) use Alt followed by 0 1 2 entered with the keypad.
Then Save as a text file.

I think there is an ASCII table accessible in Windows which you can copy and paste characters from - even control characters such as the formfeed.
Graham L (2)
367707 2005-07-06 02:35:00 "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.)

Yes GrahamL some of us made the mistake deliberately - as a student I used the old computer paper to study on (writing out everything ......) and of course you made sure you had enough "scrap" paper

And using Fortran and PL/1 - golly, they still use it these day?

sarel
sarel (2490)
367708 2005-07-07 00:50:00 First, an oops:


A DOS command sequence can do it : copy con: ff.dat then enter Ctrl/L, then Ctrl/C. This probably won't work in XP. :(
.
Of course you need Ctrl/Z not Ctrl/C to indicate end of file ..., and an Enter to tell the command interpreter that the line has ended...
That works in Windows 2000 Pro, and produces the one character file.

I've had a bit of a play with the Windows Printers page. We might, at last, have the answer. ;) I installed a Panasonic 1123 (W2k doesn't seem to have the 1121) driver to test this but the other printers I have installed seem to have this.

Right click on the appropriate printer's icon. Select its Properties page. Choose the "Advanced" tab. At the bottom, in the middle, there is a button : "Print Processor".

I suspect RAW (FF append) rather than RAW in the right hand column might be just what is needed. (That will "append" (add at the end) a formfeed character.) If that doesn't work, try RAW (FF auto).
Graham L (2)
1 2 3