Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Why I am getting object reference not set to instance of an object on opening excel file(with datas only) alone during crystal report importing ?I am using crystal report with version 10.5.3700.0 . I am having this issue only on opening excel files(with data only). On saving and then opening no such issue comes. I am using VS 2008 and sql 2005.
Posted
Updated 1-Jun-14 23:06pm
v2
Comments
Abhishek Pant 2-Jun-14 4:54am    
check your connection string for excel files or file path.
Vedat Ozan Oner 2-Jun-14 5:05am    
this is nothing with version of anything. if you share your code, I can probably give you some idea. but better, you can use your debugger. you are assuming something exists while it doesn't. (check for NULLs).
Rahul 105 2-Jun-14 6:38am    
Its happening in the inbuilt exporting of crystal report to excel file where error occurs on opening of the same
[no name] 2-Jun-14 7:46am    
You are getting that error for the exact same reason that everyone else on the planet gets that error. You are trying to use the methods or properties of a class that has not been instantiated.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900