Thread View: adobe.postscript.programming
10 messages
10 total messages
Started by Carol_Shevill
Mon, 06 Oct 2003 12:39
Tray Switching on HP8100
Author: Carol_Shevill
Date: Mon, 06 Oct 2003 12:39
Date: Mon, 06 Oct 2003 12:39
6 lines
1240 bytes
1240 bytes
I have an HP 8100 printer. In my postscript program I can specify which tray is to be selected but I cannot stop the printer from using another tray if that one is empty. The command I have been using is <</DeferredMediaSelection true /MediaPosition 3 /TraySwitch false >> setpagedevice. Also when I have sent a postscript file to the printer the data received light is still flashing. This doesn't appear to cause any problems but I would like to know how to clear the memory (or whatever is the problem). Thanks
Re: Tray Switching on HP8100
Author: Aandi_Inston
Date: Mon, 06 Oct 2003 13:27
Date: Mon, 06 Oct 2003 13:27
8 lines
1160 bytes
1160 bytes
First problem - some printers are notorious for this. I'm not sure if you can do it except by setting the trays up with special media. Second problem - if you are using an ASCII channel to the printer, try adding Ctrl+D at the end of the job. No newline may follow this. It must be optional as it will cause an error on a binary channel. Aandi Inston
Re: Tray Switching on HP8100
Author: Carol_Shevill
Date: Mon, 06 Oct 2003 15:07
Date: Mon, 06 Oct 2003 15:07
1 lines
1197 bytes
1197 bytes
Thank You! I have got it working by setting tray2 on the printer to have Letterhead and I am now printing to either letterhead or plain (so that it will not pick up the letterhead when no MediaType is selected). I still have a problem with the data received light staying and will need to investigate further. I thought I had read somewhere about a postscript command that flushes the memory but can't find it again.
Re: Tray Switching on HP8100
Author: Aandi_Inston
Date: Mon, 06 Oct 2003 19:34
Date: Mon, 06 Oct 2003 19:34
3 lines
946 bytes
946 bytes
Do you mean that Ctrl+D doesn't solve the problem? Aandi Inston
Re: Tray Switching on HP8100
Author: Carol_Shevill
Date: Tue, 07 Oct 2003 07:50
Date: Tue, 07 Oct 2003 07:50
3 lines
1061 bytes
1061 bytes
Not sure what I was doing last night as it seems to work today. BUT although the light does not stay on I now have two other problems. At the end of each page the printer ejects a plain sheet of paper. Also when I try printing more than one file using the Unix command lp only the first file prints and the print queue gets stuck. Thanx
Re: Tray Switching on HP8100
Author: Aandi_Inston
Date: Tue, 07 Oct 2003 08:38
Date: Tue, 07 Oct 2003 08:38
4 lines
962 bytes
962 bytes
So, ARE you adding Ctrl+D, with no other text? Still not clear from your reply. Aandi Inston
Re: Tray Switching on HP8100
Author: Carol_Shevill
Date: Tue, 07 Oct 2003 08:54
Date: Tue, 07 Oct 2003 08:54
7 lines
1264 bytes
1264 bytes
Sorry. I have just added CTRL+D at the end of the file. This has sorted out the problem with the light staying on. I now have an extra sheet coming out after each page is printed. This is a major problem for me. The other problem is that lp of multiple files means that the first file is printed but the rest are ignored. I can get round this be printing each file individually so I am not too worried.
Re: Tray Switching on HP8100
Author: Aandi_Inston
Date: Tue, 07 Oct 2003 11:01
Date: Tue, 07 Oct 2003 11:01
7 lines
1127 bytes
1127 bytes
Is the extra sheet after each job, or after each page of a multi-page job? For the second problem, make sure the printer is set up to print an error sheet. Aandi Inston
Re: Tray Switching on HP8100
Author: Carol_Shevill
Date: Tue, 07 Oct 2003 14:40
Date: Tue, 07 Oct 2003 14:40
7 lines
1831 bytes
1831 bytes
I will set the printer to produce an error and let you know how that goes. Each postscript file is one page only. When I had ctrl+D at the end of each postscript file I was getting one printed, one plain page per file. So I am now printing each postscript file (without a Ctrl+D) using individual lp commands and then sending a file with just a Ctrl+D as the last file printed. This clears the data received light and forces out a blank page. This is now less of a problem but will still cause some wasted sheets. I assume the data recieved light staying on is not indicating that if I send lots of files I will eventually fill the buffer. I have had to learn postscript in a very short space of time using examples from the internet. They have now purchased a book but it doesn't give all the information I need. I am sure that anyone else looking at my code will cringe BUT it works (bar the problems above) and now the company I work for (a global business) can produce invoices on plain paper with their logo, nice boxes, shading and a mix of fonts. Thank You very much for your help.
Re: Tray Switching on HP8100
Author: Aandi_Inston
Date: Tue, 07 Oct 2003 17:05
Date: Tue, 07 Oct 2003 17:05
22 lines
1843 bytes
1843 bytes
Some background: The data light means there is an unfinished job. Because a PostScript file can contain many pages, nothing in the Postscript job tells it the job has finished. Hence, you need a way to tell it the job has finished. This is important for three reasons - it turns out the data light - it means that the next job is treated as new, with all initial settings, rather than inheriting the settings of the previous job (which can result in errors, incorrect or missing output) - it stops the error "timeout" which otherwise eventually occurs, and gets a printed page if you turn on error sheets. Because this is not part of the PostScript language, few books cover it. It is printer dependent, but Ctrl+D is a fairly common convention where the printer has an ASCII connection, over serial or parallel and sometimes network ports. Bear in mind that there must be no new line after the Ctrl+D because that is considered to start a new job. Aandi Inston
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads