BUG: Selected Text Region Prints Incorrectly

Last reviewed: July 17, 1997
Article ID: Q92737
2.00 2.1.49 MS-DOS kbtool kbbuglist

The information in this article applies to:

  • Microsoft Programmer's WorkBench for MS-DOS, versions 2.0 and 2.1.49

SYMPTOMS

In Programmer's WorkBench (PWB), when you select a region of text to print, the text does not print as expected.

CAUSE

PWB does not place a carriage-return character (ASCII 13) at the end of each line in the resulting output. It places only a line-feed character (ASCII 10) at the end of each line.

RESOLUTION

Paste the text region into a new window and print from there. To do so, perform the following sequence of four steps:

  1. Select the region of text to print.

  2. From the Edit menu, choose Copy. PWB copies the selected text into the <Clipboard> pseudofile.

  3. From the Windows menu, choose PWB menus, then choose Clipboard.

  4. Choose Print from the File menu to print the text.

STATUS

Microsoft has confirmed this to be a problem in versions 2.0 and 2.1.49 of the Programmer's WorkBench. We are researching this problem and will post more information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

You can use either the mouse or the keyboard to select a region of text. For more information on selecting a region of text, see pages 15 through 18 of the Microsoft C/C++ "Environment and Tools" manual for version 7.0.

The Print command on the File menu can print a region of text to the printer or into a specified file. For more information about the Print command, see the PWB on-line help.

Because PWB does not add a carriage return to each line, a region of text that looks like the following:

      text line #1
      text line #2
      text line #3
      text line #4

may print as follows:

      text line #1
                  text line #2
                              text line #3
                                          text line #4

You can use the Print function to print a file or selected text. The output is the same as that obtained by using the Print command from the File menu. For more information on the Print function, see pages 195 and 196 of the "Environment and Tools" manual.


Additional reference words: 2.00 2.1.49 paste printcmd buglist2.00
buglist2.1.49
KBCategory: kbtool kbbuglist
KBSubcategory: PwbIss
Keywords : kb16bitonly


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: July 17, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.