Excel to TextBox
- by sukumar
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...