G
Guest
i'm trying to get data out of excel...
my code is:
private void exlSelectionChanged(Range rng)
{
lstFields.Items.Clear();
for (int i=1; i<=rng.Columns.Count ; i++)
{
lstFields.Items.Add( rng.Cells[1,i]).ToString() );
}
(i'm trying to put the first row of the selection into a listbox).
what i get is a listbox full of
System.__ComObject
please help...
my code is:
private void exlSelectionChanged(Range rng)
{
lstFields.Items.Clear();
for (int i=1; i<=rng.Columns.Count ; i++)
{
lstFields.Items.Add( rng.Cells[1,i]).ToString() );
}
(i'm trying to put the first row of the selection into a listbox).
what i get is a listbox full of
System.__ComObject
please help...