sorry if I was vague, an indexer is generates a method that takes a parameter get_Name(parameter) you should jjust be able to call this as you would any method.
Main Topics
Browse All TopicsHi, this is specifically related to late binding in excel but someone who knows reflection would be able to help I guess
I know how to set a certain property using Reflection like converting the foll line to the next
--------------------------
_worksheet.Cells.ColumnWid
--------------------------
object cells =
_worksheet.GetType().Invok
null, _range, null );
Parameters = new Object[1];
Parameters[0] = 20;
cells.GetType().InvokeMemb
null, font, Parameters);
--------------------------
But my question is how do I rewrite below using reflection?
_worksheet.Cells[1,1] = "Some String";
_worksheet.Cells[1,2] = "Some Other String";
Thanks in advance..c",)
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
i used object browser on Microsoft.Office.Interop.E
i did not see the get_Cell(..) method for the Worksheet, but i did see a certain get_Range(...)
so I thought they might be related since the Cells property are of type Range, and i happened to have a way to set values using Range so used it. The namings jumbled but I got the idea somehow. (see link below, it where I got the syntax and all)
Thanks for thoughts...
also, for everyone else's benefit, i got this url in codeproject
http://www.codeproject.com
Business Accounts
Answer for Membership
by: gregoryyoungPosted on 2006-01-06 at 11:21:48ID: 15632310
I would think that you could just call it as a method since that is what is generated ... the system.Reflection.Binding class may be of some use as well.
Greg