Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer setup for Pre-printed cheque stationary (take 2)

Status
Not open for further replies.

colinh

Programmer
Jun 11, 2001
10
AU
Printer setup for Pre-printed cheque stationary<br><br>Hi Chaps,<br>&nbsp;<br>We're running MIMSOE 4.3.1.2, on a Win NT box.<br>&nbsp;<br>I'm having trouble printing cheques on pre-printed stationary.<br><br>The Cheque Stationary is of a non-standard length 279mm deep, (actually its Letter size 11 inches deep by 8 1/2 wide) instead of A4 size (295mm deep), that the printer defaults to printing.<br>&nbsp;<br>So when my modified RDL MSR283.rdl 'page throws' to the top of a new page, it starts 16mm further down the next cheque <br>stationary.<br>&nbsp;<br>The printer expecting A4 size paper.<br>&nbsp;&nbsp;<br>Below are screen dumps of MSO016 and MSO011 for the <br>Cheque printer.<br>&nbsp;<br>What parameters can I put in the WIN NT Spool Command <br>to make it print Letter Size ?.<br>&nbsp;<br>thanks<br>Colin&nbsp;&nbsp;<br>&nbsp;<br>=======================================================<br>&nbsp;<br>MSO016<br>&nbsp;<br>District Code&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ACME&nbsp;&nbsp;&nbsp;&nbsp;TEST SYSTEM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>Device Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;P124<br>Description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CHEQUE RUN PRINTER<br>Device ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;03<br>Device Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;P<br>Default Device (Y/N)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;N<br>WIN NT Spool Command&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LP -D \\ACME\P124 -O P<br>WIN NT Spool Command (cont)&nbsp;&nbsp;&nbsp;-S 12 -X 6<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>==================================================<br>&nbsp;<br>MSO011<br>&nbsp;<br>ENTER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Table Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PR&nbsp;&nbsp;&nbsp;&nbsp;PRINTER NAME<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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sp;&nbsp;&nbsp;&nbsp;37&nbsp;&nbsp;&nbsp;-S 12 -X 6<br>WIN NT Spool Command&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;07&nbsp;&nbsp;LP -D \\ACME\P124<br>WIN NT Spool Command (cont)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;37&nbsp;&nbsp;&nbsp;-S 12 -X 6
 
For anyone interested, I've found the answer.<br><br>I should user the -a LETTER parameter.<br><br>Below is the doco for the lp command.<br><br>===========================<br><br>lp.exe on Windows<br><br>NAME <br><br>&nbsp;lp - submit print request<br><br>&nbsp;<br>SYNOPSIS <br><br>&nbsp;lp [-d destination ] [ -o options ] [ -t title ] [ -n copies ]<br>[ -f font ] [ -s size ] [ -a form ] [ -i spacing ] [ -p lines ] [ -u units ] [ -x left ] [ -y top ] file<br>&nbsp;<br>DESCRIPTION <br><br>&nbsp;lp submits print requests to a destination. It is very similar to lp on UNIX.<br>Files to be printed should be plain text. Program specific data files such as MS Word documents must be printed by the associated program.<br>In this version of lp only one file nominated in the command line will be processed.<br>&nbsp;<br>OPTIONS <br><br>&nbsp;The following options are supported.<br>&nbsp;<br>-d destination Prints the file a specific destination. The destination must be a Windows printer queue to which the user has write access. The queue can be specified in the form \\Print_server\Print_queue where \\Print_server is a printer server in the Windows domain and printer_queue is an available printer queue.<br>&nbsp;<br>-o options The options are landscape, portrait and raw. The options portrait and landscape will rotate the output at the printer. Usually reports greater than 80 characters wide are set to landscape for laser printers. The raw option will bypass the Windows formatting.<br>&nbsp;<br>-t title The title for the print job. Titles with embedded white spaces must be put in quotes.<br>&nbsp;<br>-n copies The number of copies to be printed.<br>&nbsp;<br>-f font The name of the Windows font to be used for printing. The font must be fixed pitch to preserve column alignment in reports. Font names with embedded white spaces must be put in quotes. The default is Courier New<br>&nbsp;<br>-s size The size of the Windows font to be used for printing. The default is 8.<br>&nbsp;<br>-a form The paper size to be used for printing. Try not to specify a paper size. The embedded printer controls in the report being printed should control the printer. The default paper size is the largest available. The available sizes are <br>10X14 (10 by 14 inches)<br>11X17 (11 by 17 inches)<br>A3 (297 by 420 millimetres)<br>A4 (210 by 297 millimetres)<br>A5 (148 by 210 millimetres)<br>B4 (250 by 354 millimetres)<br>B5 (182 by 257 millimetres)<br>EXECUTIVE (7 1/4 by 10 1/2 inches)<br>FANFOLD (14 7/8 by 11 inches)<br>FOLIO (8 1/2 by 13 inches)<br>LEDGER (17 by 11 inches)<br>LEGAL (8 1/2 by 14 inches)<br>LETTER (8 1/2 by 11 inches)<br>NOTE ( 8 1/2 by 11 inches)<br>QUARTO (215 by 275 millimetre)<br>STATEMENT (5 1/2 by 8 1/2 inches)<br>TABLOID (11 by 17 inches)<br>&nbsp;<br>-i spacing The vertical spacing between lines on the page. Set this para mater to expand or contract the vertical space taken up by the printing on each page. For example a value of 1.1 will lengthen the printed area by 10 percent and a value of 0.9 will decrease it by 10 percent.<br>&nbsp;<br>-p lines The number of lines to be printed before forcing a form feed. The parameter has no effect if the printer does not recognize form feeds from Windows.<br>&nbsp;<br>-u units The units to be used for setting margins. The default is Metric. The other value is US which sets the units to inches.<br>&nbsp;<br>-x left The width of the left margin. The values can be in decimals of millimetres or inches depending on the value of the -u parameter. The default is 1/2 inch<br>&nbsp;<br>-x top The width of the top margin. The values can be in decimals of millimetres or inches depending on the value of the -u parameter. The default is 1/2 inch<br>&nbsp;<br>OPERANDS <br>file The name of the file to be printed. Only one file will be processed in this version. The file must contain only printable characters and ASCII printer control characters such as FORM FEED and LINE FEED and CARRIAGE RETURN. <br>USAGE <br><br>&nbsp;To print on pre-printed paper use the left and top margins (-x and -y) to change the starting point for the printout. Change the font size with -s to expand the size of the print horizontally and vertically.<br>Many line printers simply insert some extra blank lines in response to form feed commands from Windows so the output will have to be manipulated using -i to increase or decrease the vertical size of the printed area. The left and top margins are set with -x and -y. The margin will revert to the default value (1/2 inch) if the value is set to 0. All printers have a minimum margin below which they will not print so a value of 0 for the margin is not possible.<br><br>Errors are output to a log file. This file is located in a directory named lp which is created in the Windows default temporary directory. If errors occur then a the log file will be saved. If a log directory is available at the same directory level as the temporary directory then it will be placed there. If not then it will stay in the temporary directory. The log file will be named lp_file.log<br><br>&nbsp;<br>ERRORS <br><br>&nbsp;1. The print queue selected does not exist (CreateDC failed)<br>........The site system administrator can find the correct queue name.<br>2. Unable to create the printer font (CreateFontIndirect failed)<br>........The font requested is not installed. The site system administrator can install new fonts.<br>3. You don't have access to this print queue (StartDoc failed)<br>........The print queue exists but you don't have permission to use it. The site system administrator can fix this.<br>4. There must be at least one fixed-pitch font installed for lp to work. If you removed the Courier New font that came with Windows, reinstall it and start lp again.<br>........The font named or &quot;Courier New&quot; does not exist. The system administrator can install fonts.<br>5. Unable to open the file to be printed<br>........The file to be printed does not exist.<br>6. Error reading file<br>........The file to be printed does not exist.<br>7. There is not enough memory to print the file (LocalAlloc failed)<br>........The system is very busy; if this occurs frequently then the hardware should be upgraded.<br>8. There is not enough memory to print the file (GlobalAlloc failed)<br>........The system is very busy; if this occurs frequently then the hardware should be upgraded.<br>9. Unable to continue the print job (StartPage failed)<br>........The print queue exists but you don't have write permissions to it. The site system administrator can fix this.<br>10. Printing was terminated because Print Manager ran out of memory or disk space<br>........The system is very busy; if this occurs frequently then the hardware should be upgraded.<br>11. Unable to set the paper orientation (ExtDeviceMode failed or is not supported on the printer, or the printer does not exist)<br>........The printer can't perform the orientation change.<br>&nbsp;<br><br>&nbsp;HELP <br><br>&nbsp;An information panel showing the parameter synopsis will be displayed on the system console when you run lp.exe with no parameters. <br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top