Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Clipboard to Xcel CRLF problem

Reply
 
Old 06-30-2009   #1 (permalink)
ngrTerry


 
 

Clipboard to Xcel CRLF problem

I have a problem when copying data from a datatable into clipboard
memory to be pasted into an Excel spreadsheet.

We create programs which work off a grid, and we provide a
"CopyToClipboard" facility off these tables.

The problem comes when we encounter CR, CRLF, and LF characters in the
comments field of the table.

We can remove these characters by taking the cell data and scanning/
replacing these characters, but we'd like to retain some kind of
linefeed within the cell so it can be pasted into a spreadsheet with
linefeeds.

The problem with CR/CRLF/LF is that it puts the rest of the comment
back into column A of a spreadsheet and throws any following cell data
out of alignment.

Can anyone suggest a way of retaining an excel LF within a cell in a
copyToClipboard manner.

Thanks in advance for any feedback


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
File Lf to CrLf conversion using PowerShell PowerShell
Clipboard Vista General
Clipboard Vista General
clipboard problem vista Virtual pc Vista General
Why does get-content on a text file remove crlf when cast to a string? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46