BUG: Text Copy/Paste from InfoViewer Loses Layout

Last reviewed: July 21, 1997
Article ID: Q167414
The information in this article applies to:
  • Microsoft Visual Studio 97
  • Microsoft Visual C++, 32-bit Editions, version 5.0
  • Microsoft Visual J++, version 1.1
  • Microsoft Visual InterDev, version 1.0

SYMPTOMS

When you cut-and-paste operations from a topic window in the InfoViewer, 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.

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. For example, in the online help contents open the following page:

    Platform, SDK, and DDK Documentation
        Platform SDK
       Reference
                Functions
                    Win32 Functions
                        ScreenSaverConfigureDialog to SetCursor
                            ScrollDC

In the online help text the ScrollDC function prototype looks like:

   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

   );
 

	
	


Keywords : vcbuglist500 VSInfoView VSMSDN
Version : 1.0 1.1 5.0 97
Platform : NT WINDOWS
Issue type : kbbug


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