![]() |
DEC PCSA - Extra Form Feed Before And After P |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Symptoms: A customer is using a DEC PCSA network and an HP LaserJet Series II printer. A blank page ejects before and after every print job. Reselecting the port and suppressing the top of form did not solve the problem. This problem could not be duplicated at DOS or from other programs. Solutions: When you print a document on the VAX, it is read by a Symbiont. If the code you send to the printer is not DEC standard, it looks for a form feed code. If a form feed is not the last thing in the print file, the Symbiont adds one. Since WordPerfect sends a form feed after the end of the text, then sends a reset string for the printer, the last thing the Symbiont sees is the reset string. And since this reset string is not followed by a form feed, the Symbiont adds one, thus giving a blank page after every document. The /PASSALL qualifier that can be sent with print jobs affects the Symbiont in the following manner. If you send the job with /PASSALL, it tells the Symbiont to NOT read any of the following code, but the Symbiont then sends the form feed code. If you send the job with /NOPASSALL, the Symbiont reads the code and doesn't see a form feed as the last code, so it sends one of its own. Either way, you get an extra form feed. The way to fix the problem is to send a /NOPASSALL code to make sure that the Symbiont reads the code in the following manner: surround all the WP reset codes with two escape sequences, "P" and "\". Doing this specifically tells the Symbiont to ignore what is between these codes. Thus, the last thing the Symbiont sees is a form feed, so it will not add one of its own. WP 5.0 You can do this in the WP 5.0 PTR Program by retrieving the .ALL file or .PRS file for the printer in question (the .ALL file is recommended). Go into "Initialize and Reset," then into "Reset at End of Print Job." Here you will put an escape "P" at the beginning and an escape "\" at the end (e.g., [27]"P" and [27"\"). WP 5.1 In WP 5.1 this process is a little bit more complicated because when you go to "Reset at End of Print Job," you don't see an escape string, you see a variable (or maybe several variables). The variable(s) hold all the escape sequences for the reset. You can do one of two things: 1. Put the [27]"P" before the first variable and the [27]"\" after the last variable. 2. Create two new variables, one for the [27]"P" and one for the [27]"\". Then insert the new variables before any other variables and after the last variable, respectively. Remember that this relates only to the "Reset at End of Print Job" entry. Edit the variable(s). Press Alt-F8, search for the variable, press Ctrl-Enter for the edit window, make the change, and exit. If you use this method you must put the [27]"P" at the BEGINNING of the first variable in the "Reset at End of Print Job" entry and the [27]"\" in the end of the last variable in the "Reset at End of Print Job" entry. On the VAX, there are already WP 5.0 (VAX version not DOS version) drivers available with these changes for some of the printers. The drivers have a V1 at the end of the name. Users with PCSA mostly don't use the VAX-supplied printer drivers or use WP 5.1. If the customer is using WP 5.0, he or she can use one of the V1 drivers from VAX, but if the customer is using WP 5.1, he or she will have to make the changes specified above in the PTR Program. PCSA automatically adds a /PASSALL code on the print job. The customer can remove the /PASSALL code by doing one of two things: 1. From DOS enter the following command NET PRINT Where device is the print device the customer is printing to (i.e., LPT1, LPT2, etc.) 2. Modify the AUTOUSER.BAT file on the VAX and add the command in step 1 below every "print" device setup command. For example: USE LPT1: \\VAXONE\PR2D NET PRINT LPT1: /SET /NOPASSALL USE LPT2: \\VAXONE\SUPPORT2D NET PRINT LPT2: /SET /NOPASSALL Method 1 is only good until the customer reboots, while method 2 makes the appropriate change every time the customer reboots. Finally, when selecting the printer port, the customer MUST answer Yes to "Network Printer Y/N?" Then, at the question, "Suppress Top of Form on last page of document? Y/N," the customer MUST answer No. If you answer Yes, WP will suppress the form feed at the last page of the document, and the Symbiont won't see the form feed and will provide one for you. Summary 1. Remove PCSA's added /PASSALL code by using the NET PRINT 2. Modify the printer definition 3. Set up WP correctly One customer solved the problem of the extra form feed by reinstalling the printer through Pathworks and letting the /RESET option be set to /RESET=reset. |
Answer:
Details:
Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER. |