SNA Server Print Server Always Inserts CR/LF

Last reviewed: March 19, 1998
Article ID: Q169182

The information in this article applies to:

  • Microsoft SNA Server version 3.0 and 3.0 Service Pack 1 (SP1)

SYMPTOMS

When printing, SNA Server Print Server will insert its own carriage return/line feed (CR/LF) at the column that is indicated in the Default Page Width value in the Printer Properties. However, some print jobs control their CR/LF with 3270 Orders using Set Buffer Address (SBA), in an SCS Code ('15' EBCDIC or '0A' ASCII), and/or in Escape Sequences (either in transparent sections or not).

NOTE: The Escape sequence that tells the printer to do the wrapping is:

   <Esc>&s0C <-End-of-line wrap = 0

   0 = enable End of line Wrap
   1 = Disable End of Line Wrap

RESOLUTION

A fix is available to correct this problem. To prevent SNA Print Server from inserting its own CR/LF, apply the fix referenced below and then edit the registry as follows:

WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.

  1. Start Registry Editor (Regedt32.exe or Regedit.exe, as appropriate for your version of Windows NT).

  2. Go to the following key in the registry:

    HKEY_LOCAL_ MACHINE\system\currentcontrolset\ services\snaprint\parameters\

  3. On the Edit menu, click Add Value and use the following entry:

          Value Name: LineWrap
          Data Type: REG_SZ
    

  4. Click OK.

  5. In the String field, input the string TRUE and then click OK.

  6. Stop SNAPrint Service and SNA Server Manager.

  7. Copy the fixed DLLs to the <Snaroot>\System directory.

  8. Restart SNAPrint Service and SNA Server Manager.

STATUS

Microsoft has confirmed this to be a problem in SNA Server 3.0 and 3.0 Service Pack 1 (SP1). This problem was corrected in the latest SNA Server version 3.0 U.S. Service Pack. For information on obtaining this Service Pack, query on the following word in the Microsoft Knowledge Base (without the spaces):

   S E R V P A C K

MORE INFORMATION

The definition of End Of Line Wrap, as stated in the PCL 5 Comparison Guide Manual, part no. 5961-0941, is:

   When end of line wrap is enabled, a character or space that moves the
   cursor to the right of the right margin executes a CR-LF(prior to the
   printing of the character or space).
Keywords          : prodsna snaprintservice kbfix3.00.sp2 kbnetwork
Version           : 3.0
Platform          : WINDOWS
Issue type        : kbbug
Solution Type     : kbfix


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 19, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.