Microsoft KB Archive/167414

= BUG: Text Copy/Paste from InfoViewer Loses Layout =

Article ID: 167414

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft Visual Studio 97 Service Pack 3
 * Microsoft Visual C++ 5.0 Enterprise Edition
 * Microsoft Visual C++ 5.0 Professional Edition
 * Microsoft Visual J++ 1.1 Standard Edition
 * Microsoft Visual InterDev 1.0 Standard Edition

-



This article was previously published under Q167414



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

);

Keywords: kbbug kbpending KB167414

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.