BUG: Selected Text Region Prints Incorrectly

ID: Q92737

2.00 2.1.49 MS-DOS kbtool kbbuglist

The information in this article applies to:

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

Last Reviewed: July 18, 1997