I am using the following code to create a excel file. I have office 2003 installed in my machine. I have made following reference Microsoft excel 11.0 object library. The code is working fine in my machine. But in other machine (where office 2000 is installed) It is giving object reference not set to instance of object exception in the following line.

There is chance of changes in api of excel 2000 & 2003 so you may have to create the introp file for 2000 which may be compatible for 2003, but in usualy backward compatiblity may not be there for some api.

Another thing,Do you have tmp folder in that machine also?

Prashant

dotnetprogrammer

May 10th, 2005 09:13 AM

Yes I have tmp folder in that machine also.
Could you plz give me some code that will work in every version of outlook.