lee wrote:
> Hi!
> I need to open and fill excel cells from my winform
> application, however, I do not want to use the excel
> object model, I would like to use late binding.
> (In VB 6 - CreatObject("Excel") - was used).
> Does anyone know how to do this in C#?
> A simple sample would be very appreciated!
> Thanks alot!
Late binding was never a good idea in VB. I never like telling people that
their request is not a good idea, but I am afraid in this case there is no
solution. Late binding is horrible and should never have been available in
VB because it has caused far too many problems and those problems are
usually only detectable at runtime. You have a compiler, and the compiler
enforces early binding and type checking, there is a good reason for this.
*Use the compiler Luke!*
Richard
--
my email
(E-Mail Removed) is encrypted with ROT13 (
www.rot13.org)
sign up for my free .NET newsletter at
http://www.wd-mag.com/newsletters/