BUG: Text Copy/Paste from InfoViewer Loses Layout

ID: Q167414


The information in this article applies to:
  • Microsoft Visual Studio versions 97, 6.0
  • Microsoft Visual C++, 32-bit Editions, versions 5.0, 6.0
  • Microsoft Visual J++, versions 1.1, 6.0
  • Microsoft Visual InterDev, versions 1.0, 6.0


SYMPTOMS

When you cut-and-paste operations from a topic window in the Online Help in Visual Studio, the text does not match the original. It contains extra white space, new lines, and, sometimes, other characters.

For example, a table does not retain a table-like layout when copied to a text file or Microsoft Excel spreadsheet.


CAUSE

Internet Explorer's translation of the underlying HTML text adds extra white space for many HTML tags.


RESOLUTION

The white space must be removed manually. Internet Explorer 4.0 has fewer problems in this area than previous versions.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

The problem is most noticeable when you try to copy formatted information, such as a table. In HTML, this is represented by a stream of tags, and not in a two dimensional layout.

The ScrollDC function demonstrates this problem. In the Online Help Index, type ScrollDC to find and display this Win32 function. In the Online Help text, the ScrollDC function prototype looks like the following:


   BOOL ScrollDC(
    HDC hDC,                // handle of device context
    int dx,                 // horizontal scroll units
    int dy,                 // vertical scroll units
    CONST RECT *lprcScroll, // address of structure for scrolling rectangle
    CONST RECT *lprcClip,   // address of structure for clipping rectangle
    HRGN hrgnUpdate,        // handle of scrolling region
    LPRECT lprcUpdate       // address of structure for update rectangle
   ); 

This text will look like this when copied to a text file:

   BOOL ScrollDC(


   HDC hDC,



   // handle of device context

   int dx,



   // horizontal scroll units

   int dy,



   // vertical scroll units

   CONST RECT *lprcScroll,



   // address of structure for scrolling rectangle

   CONST RECT *lprcClip,



   // address of structure for clipping rectangle

   HRGN hrgnUpdate,



   // handle of scrolling region

   LPRECT lprcUpdate



   // address of structure for update rectangle

   ); 

Additional query words:

Keywords : kbVC500bug kbVC600bug kbVisID100bug kbVisID600bug kbVJ110bug kbVJ600bug kbVS97bug kbVS600bug kbGrpDSTools
Version : WINDOWS:1.0,1.1,6.0,97; winnt:5.0,6.0
Platform : WINDOWS winnt
Issue type : kbbug


Last Reviewed: April 15, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.