R
Robert Bravery
Hi all,
Being new to C# and .net I often don't know how to use things.
I have created an app that imports excel data, it works well, with methods
to open excel, extract the data and close excel.
Now a colege of mine suggested useinf the usingstatement, so that the office
object is dispossed/destroyued correctly, saying that it prevents
memoryleaks. Problem is I am having problems trying to achieve this, I keep
getting the error:
type used in a using statement must be implicitly convertible to
'System.IDisposable'
Which at thie early time makes no sense to me, can someone explain and
perhaps with some code I can follow
Thanks
Robert
Being new to C# and .net I often don't know how to use things.
I have created an app that imports excel data, it works well, with methods
to open excel, extract the data and close excel.
Now a colege of mine suggested useinf the usingstatement, so that the office
object is dispossed/destroyued correctly, saying that it prevents
memoryleaks. Problem is I am having problems trying to achieve this, I keep
getting the error:
type used in a using statement must be implicitly convertible to
'System.IDisposable'
Which at thie early time makes no sense to me, can someone explain and
perhaps with some code I can follow
Thanks
Robert