I am reading clipboard data from Excel using
var stream = (System.IO.Stream) ( Forms.Clipboard.GetDataObject() ).GetData( Forms.DataFormats.CommaSeparatedValue );,
but unfortunately excel passes the cell text instead of the cell values. When cells use special formatting (for example, the thousandth seperator), clipboard data for a number of cells in columns that looks like this:
1,234,123.00 2,345.00 342.00 12,345.00
stored as follows:
\" 1,234,123.00 \",\" 2,345.00 \", 342.00 ,\" 12,345.00 \"
when i really want this:
1234123.00, 2345.00, 342.00, 12345.00
Earlier, I used the function clipData.Split(new string[] { "," }, StringSllitOptions.None))to turn the data from the CSV clipboard into a series of cells, but this fails if there is formatted text with commas.
, - , , , \", Excel , .
, , :
\" 1,234,123.00 \",\" 2,345.00 \", 342.00 ,\" 12,345.00 \"
, :
{ "1,234,123.00", "2,345.00", "342.00", "12,345.00" }
-.
***** ***
( DFA) : , , ?