Excel to TextBox
Posted
by sukumar
on Stack Overflow
See other posts from Stack Overflow
or by sukumar
Published on 2010-04-07T07:45:03Z
Indexed on
2010/04/07
8:13 UTC
Read the original article
Hit count: 206
How to copy Excel data into a Textbox using C#?
Excel.Worksheet wrksheet = (Excel.Worksheet)userControl11.oWB.ActiveSheet; Excel.Range range = wrksheet.UsedRange; wrksheet.Copy(this, Missing.Value); IDataObject data = Clipboard.GetDataObject(); textBox1.Text = data.GetData(DataFormats.Text).ToString();
With this above code i'm unable to achieve what i expected.
Pls help me...
© Stack Overflow or respective owner